Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.26ms] Passed 4 tests
A check of server-side resources used by Daily Image
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 37.53 ▼6.39 |
Dashboard /wp-admin | 3.33 ▲0.02 | 44.13 ▼6.02 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.89 ▼2.24 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.75 ▼6.38 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.68 ▲0.75 |
Daily Image /wp-admin/edit.php?page=daily_image | 3.23 | 30.00 |
Server storage [IO: ▲0.81MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Daily Image
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.79 ▲0.40 | 1.71 ▼0.07 | 40.39 ▼7.69 |
Dashboard /wp-admin | 2,207 ▲22 | 5.82 ▼0.05 | 107.33 ▲5.47 | 39.65 ▼4.75 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.00 ▲0.02 | 37.16 ▼4.60 | 34.97 ▼1.14 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.52 ▲0.22 | 646.73 ▲12.60 | 55.64 ▼0.01 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.20 ▲0.01 | 98.50 ▼0.85 | 43.55 ▲0.29 |
Daily Image /wp-admin/edit.php?page=daily_image | 814 | 1.96 | 26.62 | 24.98 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
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: Call to undefined function add_action() in wp-content/plugins/daily-image/daily-image.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function di_get_unattached_and_lonely() in wp-content/plugins/daily-image/admin-ui.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: photography, postbot, photo posting
daily-image/daily-image.php Passed 13 tests
The principal PHP file in "Daily Image" v. 1.0 is loaded by WordPress automatically on each request
100 characters long description:
Easily create a photo post every day featuring the unattached media in your WordPress media library.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin377 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 61 | 10 | 270 |
CSS | 1 | 4 | 0 | 107 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.77MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
screenshot-1.png | 749.54KB | 274.83KB | ▼ 63.33% |
images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |