Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.81ms] Passed 4 tests
Analyzing server-side resources used by Media EP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.41 ▼5.05 |
Dashboard /wp-admin | 3.36 ▲0.01 | 47.86 ▼13.79 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.55 ▼0.22 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 89.25 ▼0.18 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.81 ▲1.65 |
Media EP /wp-admin/options-general.php?page=media-ep | 3.26 | 38.54 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
media_ep_key |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Media EP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.19 ▼1.24 | 1.61 ▼0.23 | 41.24 ▼3.77 |
Dashboard /wp-admin | 2,210 ▲19 | 4.89 ▼0.01 | 108.08 ▼0.37 | 42.33 ▼3.80 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▲0.07 | 39.34 ▲2.00 | 36.08 ▼1.30 |
Add New Post /wp-admin/post-new.php | 1,522 ▼11 | 22.97 ▼0.15 | 591.10 ▼99.49 | 62.73 ▲9.04 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.16 ▼0.04 | 94.12 ▼6.49 | 41.94 ▼3.18 |
Media EP /wp-admin/options-general.php?page=media-ep | 898 | 2.04 | 26.66 | 45.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- media_ep_key
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/media-ep/media-ep.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (To configure the destination of your photoes and get your *secret url* — did we mention it's a secret? — Go to **Settings → Media EP**), #2 (Copy that URL into your favorite Twitter client (TweetBot or Twitteriffic work great))
media-ep/media-ep.php Passed 13 tests
The principal PHP file in "Media EP" v. 1.0.1 is loaded by WordPress automatically on each request
65 characters long description:
A non-authenticating WordPress Media Endpoint for Twitter Clients
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected142 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 73 | 58 | 142 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 54.01KB | 16.18KB | ▼ 70.04% |