Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.39MB] [CPU: ▲1.45ms] Passed 4 tests
Analyzing server-side resources used by Smart Mockups
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.42 | 48.14 ▲9.32 |
Dashboard /wp-admin | 3.75 ▲0.40 | 56.62 ▲0.96 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 58.13 ▲9.28 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 91.69 ▼13.78 |
Media Library /wp-admin/upload.php | 3.59 ▲0.35 | 44.34 ▲10.97 |
Add New /wp-admin/post-new.php?post_type=smart_mockup | 3.77 | 52.02 |
All Mockups /wp-admin/edit.php?post_type=smart_mockup | 3.70 | 46.76 |
Settings /wp-admin/edit.php?post_type=smart_mockup&page=smartmockups_settings | 3.58 | 41.19 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Smart Mockups: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,996 ▲250 | 14.87 ▲0.41 | 1.90 ▼0.02 | 45.00 ▼1.98 |
Dashboard /wp-admin | 2,399 ▲207 | 6.70 ▲1.73 | 130.47 ▲16.26 | 38.93 ▼5.21 |
Posts /wp-admin/edit.php | 2,305 ▲216 | 3.65 ▲1.65 | 53.97 ▲15.10 | 31.86 ▼1.65 |
Add New Post /wp-admin/post-new.php | 1,560 ▲46 | 23.31 ▲5.86 | 624.75 ▼69.70 | 35.52 ▼33.90 |
Media Library /wp-admin/upload.php | 1,444 ▲56 | 4.25 ▲0.11 | 85.76 ▼11.93 | 45.43 ▲3.88 |
Add New /wp-admin/post-new.php?post_type=smart_mockup | 2,479 | 7.87 | 188.45 | 71.50 |
All Mockups /wp-admin/edit.php?post_type=smart_mockup | 1,277 | 3.52 | 46.30 | 27.48 |
Settings /wp-admin/edit.php?post_type=smart_mockup&page=smartmockups_settings | 1,060 | 3.31 | 46.52 | 27.69 |
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 does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/smart-mockups/public/templates/smart-mockups-password-display.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function sm_is_notification_enabled() in wp-content/plugins/smart-mockups/admin/templates/settings-notifications.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/smart-mockups/public/templates/smart-mockups-public-display.php:12
- > PHP Fatal error
Uncaught Error: Class 'Smart_Mockups_Setup' not found in wp-content/plugins/smart-mockups/admin/templates/settings-general.php:3
- > 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 issues were found
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
Attributes that require attention:
- Tags: Please delete some tags, you are using 19 tag instead of maximum 10
smart-mockups/smart-mockups.php Passed 13 tests
The primary PHP file in "Smart Mockups" version 1.2.0 is used by WordPress to initiate all plugin functionality
62 characters long description:
Get instant reviews, comments and feedbacks from your clients.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin4,618 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 560 | 1,194 | 1,780 |
Sass | 2 | 288 | 33 | 979 |
CSS | 4 | 58 | 13 | 889 |
JavaScript | 6 | 212 | 66 | 833 |
PO File | 1 | 51 | 55 | 137 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 98 | |
▷ Static methods | 9 | 9.18% |
▷ Public methods | 92 | 93.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 6.12% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.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
There were not PNG files found in your plugin