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.07MB] [CPU: ▼11.94ms] Passed 4 tests
A check of server-side resources used by AtticThemes: Likes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 23.98 ▼16.99 |
Dashboard /wp-admin | 3.40 ▲0.05 | 42.55 ▼17.03 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 44.90 ▼3.00 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 82.10 ▼10.75 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 34.10 ▼0.27 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AtticThemes: Likes
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,911 ▲176 | 13.62 ▼0.67 | 9.16 ▲7.34 | 37.23 ▼12.92 |
Dashboard /wp-admin | 2,197 ▲9 | 4.87 ▼0.24 | 107.89 ▼2.38 | 40.23 ▼2.34 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 1.97 ▲0.00 | 40.57 ▼2.05 | 35.74 ▼2.34 |
Add New Post /wp-admin/post-new.php | 1,547 ▲5 | 18.65 ▲0.27 | 647.71 ▼3.65 | 65.66 ▲14.32 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.20 ▼0.07 | 100.30 ▲3.79 | 43.13 ▲0.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
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
Everything seems fine, however 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
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/atticthemes-likes/atticthemes-likes.php:434
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (**Post Likes** Heres how it looks, simple and nonintrusive.), #2 (**Posts Screen** Order posts by the number of likes.)
atticthemes-likes/atticthemes-likes.php Passed 13 tests
The main PHP script in "AtticThemes: Likes" version 1.0.1 is automatically included on every request by WordPress
43 characters long description:
A simple plugin to add likes to your posts.
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 plugin482 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 151 | 164 | 349 |
JavaScript | 2 | 36 | 12 | 121 |
CSS | 2 | 4 | 0 | 12 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 20 | 64.52% |
▷ Public methods | 29 | 93.55% |
▷ Protected methods | 2 | 6.45% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 59.52KB | 17.67KB | ▼ 70.32% |
screenshot-2.png | 39.05KB | 12.84KB | ▼ 67.11% |