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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼140.26ms] Passed 4 tests
Analyzing server-side resources used by Excerpt Beautifier
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.02 | 31.29 ▼3.38 |
Dashboard /wp-admin | 3.07 ▲0.02 | 44.64 ▼2.54 |
Posts /wp-admin/edit.php | 3.13 ▲0.01 | 48.63 ▼4.24 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 91.08 ▼550.86 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 30.41 ▲0.29 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Excerpt Beautifier
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲42 | 15.80 ▼0.10 | 10.22 ▼1.19 | 48.65 ▲3.09 |
Dashboard /wp-admin | 2,967 ▲33 | 5.98 ▲0.05 | 166.90 ▲19.80 | 111.18 ▲1.35 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▼0.00 | 63.26 ▼5.67 | 84.99 ▼0.95 |
Add New Post /wp-admin/post-new.php | 1,676 ▼2,032 | 18.82 ▲0.06 | 409.49 ▼68.19 | 104.64 ▼1.90 |
Media Library /wp-admin/upload.php | 1,810 ▼0 | 5.01 ▼0.02 | 159.89 ▲8.38 | 116.15 ▲3.59 |
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 successfully, without leaving any 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/beautify-excerpt/BeautifyExcerpt.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add an image for screenshot #1 (Markup of the excerpts)
- Screenshots: Please a description for screenshot #0 in beautify-excerpt/assets to your readme.txt
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== beautify-excerpt ===
)
beautify-excerpt/BeautifyExcerpt.php 85% from 13 tests
"Excerpt Beautifier" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("beautify-excerpt.php" instead of "BeautifyExcerpt.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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 plugin45 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 19 | 17 | 45 |
PHP code Passed 2 tests
Analyzing 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 | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 were not PNG files found in your plugin