Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.04ms] Passed 4 tests
Server-side resources used by Fetch Some Tweets
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.81 ▼5.82 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.05 ▼12.26 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.15 ▲1.36 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 82.83 ▼3.45 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.06 ▲5.87 |
Fetch Some Tweets /wp-admin/options-general.php?page=fetch_some_tweets | 3.22 | 31.84 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Fetch Some Tweets
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲74 | 14.78 ▲0.40 | 1.93 ▼0.63 | 44.36 ▼0.13 |
Dashboard /wp-admin | 2,212 ▲24 | 5.86 ▲0.72 | 98.33 ▼21.99 | 35.97 ▼11.24 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.00 ▼0.04 | 34.61 ▼3.96 | 33.30 ▲1.49 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 22.70 ▼0.22 | 644.45 ▼17.59 | 56.42 ▲3.33 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.18 ▼0.01 | 93.00 ▼9.87 | 40.81 ▼2.15 |
Fetch Some Tweets /wp-admin/options-general.php?page=fetch_some_tweets | 882 | 2.17 | 22.66 | 27.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Abraham\\TwitterOAuth\\SignatureMethod' not found in wp-content/plugins/fetch-some-tweets/vendor/abraham/twitteroauth/src/HmacSha1.php:19
- > PHP Fatal error
Uncaught Error: Class 'Abraham\\TwitterOAuth\\Config' not found in wp-content/plugins/fetch-some-tweets/vendor/abraham/twitteroauth/src/TwitterOAuth.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Donate link: Invalid URI ("")
fetch-some-tweets/fetch-some-tweets.php Passed 13 tests
The primary PHP file in "Fetch Some Tweets" version 1.5 is used by WordPress to initiate all plugin functionality
44 characters long description:
JSON Driven PHP Twitter Feed via Twitter API
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin2,476 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 505 | 1,254 | 2,133 |
JSON | 4 | 0 | 0 | 265 |
Markdown | 2 | 29 | 0 | 78 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 16.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 1 | 5.88% |
▷ Concrete classes | 16 | 94.12% |
▷ Final classes | 0 | 0.00% |
Methods | 156 | |
▷ Static methods | 37 | 23.72% |
▷ Public methods | 129 | 82.69% |
▷ Protected methods | 1 | 0.64% |
▷ Private methods | 26 | 16.67% |
Functions | 6 | |
▷ Named functions | 1 | 16.67% |
▷ Anonymous functions | 5 | 83.33% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected