Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼293.39ms] Passed 4 tests
Server-side resources used by Advanced Excerpt
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.17 | 58.07 ▲5.00 |
Dashboard /wp-admin | 3.53 ▲0.12 | 35.20 ▲1.26 |
Posts /wp-admin/edit.php | 3.75 ▲0.11 | 38.53 ▲2.94 |
Add New Post /wp-admin/post-new.php | 6.99 ▲0.02 | 95.41 ▼1,180.86 |
Media Library /wp-admin/upload.php | 3.40 ▲0.11 | 25.91 ▲3.12 |
Excerpt /wp-admin/options-general.php?page=advanced-excerpt | 3.44 | 28.05 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 1 new option
New WordPress options |
---|
advanced_excerpt |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Excerpt
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,772 ▲18 | 15.75 ▲0.20 | 5.78 ▼0.85 | 2.53 ▲0.11 |
Dashboard /wp-admin | 2,897 ▲36 | 6.11 ▼0.03 | 115.99 ▼18.22 | 159.34 ▲0.87 |
Posts /wp-admin/edit.php | 2,693 ▲5 | 3.37 ▲0.01 | 64.04 ▼0.17 | 140.36 ▼4.99 |
Add New Post /wp-admin/post-new.php | 1,720 ▲59 | 21.90 ▲5.90 | 444.92 ▲23.52 | 157.12 ▲7.72 |
Media Library /wp-admin/upload.php | 1,697 ▼4 | 5.53 ▼0.01 | 138.54 ▼2.42 | 185.04 ▼0.13 |
Excerpt /wp-admin/options-general.php?page=advanced-excerpt | 3,133 | 2.65 | 60.11 | 212.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
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
Even though no errors were found, 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
The following issues need your attention
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanced-excerpt/template/options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/advanced-excerpt/functions/functions.php:96
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-excerpt/advanced-excerpt.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanced-excerpt/template/sidebar.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
5 plugin tags: post excerpt, excerpt, content, formatting, post
advanced-excerpt/advanced-excerpt.php Passed 13 tests
"Advanced Excerpt" version 4.3.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
49 characters long description:
Control the appearance of WordPress post excerpts
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected909 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 137 | 74 | 711 |
CSS | 1 | 0 | 0 | 125 |
JavaScript | 2 | 13 | 6 | 73 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 87.00 |
▷ Minimum class complexity | 87.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 6.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin