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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.72ms] Passed 4 tests
Server-side resources used by Moxo
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.42 ▲0.01 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.38 ▼1.85 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.81 ▼5.34 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.92 ▲2.95 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.41 ▲0.30 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Moxo
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.71 ▼0.60 | 1.60 ▼0.26 | 36.70 ▼13.05 |
Dashboard /wp-admin | 2,203 ▲15 | 4.87 ▼0.99 | 100.18 ▼6.15 | 39.45 ▼5.58 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.00 | 41.33 ▲5.05 | 36.88 ▲3.12 |
Add New Post /wp-admin/post-new.php | 1,528 ▼5 | 18.39 ▼4.70 | 600.20 ▼87.70 | 55.16 ▼4.41 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.21 ▼0.01 | 94.14 ▼6.93 | 42.22 ▼4.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/moxo/inc/moxo/sections/section-testimonial.php:101
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/moxo/inc/moxo/features/moxo-slider-section.php:202
- > PHP Fatal error
Uncaught Error: Call to undefined function update_option() in wp-content/plugins/moxo/inc/moxo/default-widgets/default-widget.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/moxo/inc/moxo/sections/section-service.php:105
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/moxo/inc/moxo/features/moxo-navigation.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_insert_post() in wp-content/plugins/moxo/inc/moxo/default-pages/home-page.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/moxo/inc/moxo/features/moxo-testimonial.php:196
- > PHP Warning
Use of undefined constant MOXO_PLUGIN_URL - assumed 'MOXO_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/moxo/inc/moxo/default-pages/upload-media.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/moxo/inc/moxo/sections/section-slider.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/moxo/inc/moxo/features/moxo-service-section.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: section, moxo
moxo/moxo.php 92% from 13 tests
The entry point to "Moxo" version 1.0.5 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 218 characters long)
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
There were no executable files found in this plugin1,518 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 130 | 183 | 1,282 |
CSS | 2 | 22 | 0 | 135 |
JavaScript | 4 | 21 | 24 | 101 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 81.82% |
▷ Protected methods | 2 | 18.18% |
▷ Private methods | 0 | 0.00% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/moxo/images/testimonial/testimonial01.png | 8.20KB | 3.88KB | ▼ 52.72% |
inc/moxo/images/service/img-3.png | 16.71KB | 2.27KB | ▼ 86.39% |
inc/moxo/images/testimonial/testimonial02.png | 11.04KB | 4.58KB | ▼ 58.54% |
inc/moxo/images/service/img-1.png | 15.77KB | 1.54KB | ▼ 90.21% |
inc/moxo/images/service/img-2.png | 1.64KB | 0.91KB | ▼ 44.74% |