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
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.02ms] Passed 4 tests
This is a short check of server-side resources used by Show More for P2
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 48.78 ▲5.87 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.83 ▼3.77 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.36 ▲1.75 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.73 ▼19.89 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.07 ▲1.85 |
Server storage [IO: ▲1.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Show More for P2: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.31 ▼1.06 | 2.04 ▲0.29 | 44.27 ▲0.21 |
Dashboard /wp-admin | 2,209 ▲18 | 5.84 ▲0.93 | 93.76 ▼11.54 | 38.18 ▼4.22 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.01 | 32.91 ▼3.01 | 36.69 ▲3.15 |
Add New Post /wp-admin/post-new.php | 1,538 ▲8 | 23.41 ▲5.41 | 675.63 ▲49.13 | 52.28 ▼2.64 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.24 ▲0.05 | 96.51 ▼2.88 | 42.25 ▼5.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- 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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/show-more-p2/show-more-p2.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: more, p2, excerpt, show
show-more-p2/show-more-p2.php Passed 13 tests
The entry point to "Show More for P2" version 1.3.3 is a PHP file that has certain tags in its header comment area
74 characters long description:
Automatically minimizes posts and adds a more link to display them inline.
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 plugin147 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 1 | 37 | 129 |
PHP | 1 | 4 | 18 | 18 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 1.10MB with 0.78MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-4.png | 101.08KB | 29.91KB | ▼ 70.41% |
assets/screenshot-5.png | 566.55KB | 177.19KB | ▼ 68.72% |
assets/screenshot-2.png | 38.02KB | 11.25KB | ▼ 70.40% |
assets/screenshot-1.png | 313.28KB | 85.91KB | ▼ 72.58% |
assets/screenshot-3.png | 104.07KB | 26.82KB | ▼ 74.22% |