Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼8.42ms] Passed 4 tests
An overview of server-side resources used by Ultra Excerpts
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.43 ▼1.16 |
Dashboard /wp-admin | 3.39 ▲0.08 | 42.58 ▼8.08 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 44.72 ▼6.08 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 80.82 ▼18.35 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.47 ▲0.43 |
Ultra Excerpts /wp-admin/options-general.php?page=ultra_excerpts | 3.28 | 30.92 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
ultra_excerpt_fields |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Ultra Excerpts
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲97 | 14.74 ▲0.49 | 1.85 ▲0.27 | 42.84 ▼1.68 |
Dashboard /wp-admin | 2,210 ▲19 | 4.85 ▼1.08 | 106.47 ▲0.44 | 42.34 ▼0.08 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.05 ▲0.03 | 41.04 ▲1.91 | 35.49 ▼0.86 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.03 ▼0.14 | 591.30 ▼20.13 | 58.04 ▲7.71 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.23 ▼0.01 | 96.03 ▲0.07 | 41.69 ▲0.16 |
Ultra Excerpts /wp-admin/options-general.php?page=ultra_excerpts | 937 | 2.03 | 28.29 | 39.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
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)
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 take a closer look at the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/ultra-excerpts/includes/templates/options-page.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ultra-excerpts/ultra_excerpt.php:28
- > PHP Notice
Undefined variable: plugin_url in wp-content/plugins/ultra-excerpts/includes/templates/options-page.php on line 7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 86% 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
Attributes that require attention:
- Contributors: The plugin contributors field is not present
ultra-excerpts/ultra_excerpt.php 77% from 13 tests
The main file in "Ultra Excerpts" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("ultra-excerpts.php" instead of "ultra_excerpt.php")
- Requires PHP: The required version number did not match the one declared in readme.txt ("7.4" instead of "7.0")
- Requires at least: The required version number did not match the one declared in readme.txt ("5.5" instead of "5.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin528 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 148 | 29 | 342 |
CSS | 1 | 29 | 1 | 180 |
JavaScript | 1 | 6 | 1 | 6 |
PHP code Passed 2 tests
This is a very shot review 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.23 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin