Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/mz-post-and-page-excerpts-widgets/mz-post-and-page-excerpts-widgets.php+26
Function create_function() is deprecated
Server metrics [RAM: ▼1.93MB] [CPU: ▼52.30ms] Passed 4 tests
Server-side resources used by MZ Post and Page Excerpts Widgets
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.41 | 4.40 ▼35.85 |
Dashboard /wp-admin | 2.08 ▼1.23 | 4.93 ▼43.59 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 5.79 ▼41.30 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 5.20 ▼88.44 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.14 ▼26.28 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_mz_page_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_mz_post_widget |
Browser metrics Passed 4 tests
A check of browser resources used by MZ Post and Page Excerpts Widgets
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 13.35 ▼0.95 | 1.66 ▼0.14 | 40.28 ▼4.69 |
Dashboard /wp-admin | 2,200 ▲12 | 4.85 ▼1.01 | 98.85 ▼15.87 | 40.86 ▼0.82 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 1.99 ▲0.02 | 39.55 ▲4.89 | 36.14 ▲2.61 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.33 ▼4.93 | 581.40 ▼76.73 | 54.35 ▼2.04 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.25 ▲0.03 | 95.03 ▼6.87 | 42.74 ▼4.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/mz-post-and-page-excerpts-widgets/mz-post-and-page-excerpts-widgets.php+26
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_mz_post_widget
- widget_mz_page_widget
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mz-post-and-page-excerpts-widgets/mz-post-and-page-excerpts-widgets.php:17
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mz-post-and-page-excerpts-widgets/mz-post-widget.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mz-post-and-page-excerpts-widgets/mz-page-widget.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: post excerpts, page excerpts, post and page excerpts widgets
mz-post-and-page-excerpts-widgets/mz-post-and-page-excerpts-widgets.php 92% from 13 tests
The main PHP script in "MZ Post and Page Excerpts Widgets" version 1.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 180 characters long)
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 plugin500 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 62 | 58 | 495 |
CSS | 1 | 1 | 0 | 5 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 41.00 |
▷ Minimum class complexity | 41.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 9.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin