Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.41ms] Passed 4 tests
This is a short check of server-side resources used by Post Navigator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.68 ▼3.28 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.41 ▼7.48 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.90 ▲1.49 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.33 ▼0.38 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.55 ▲4.12 |
Post Navigator /wp-admin/options-general.php?page=post-navigator-post-types | 3.23 | 32.06 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Post Navigator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲85 | 13.65 ▼0.93 | 4.46 ▲2.49 | 42.68 ▼0.98 |
Dashboard /wp-admin | 2,223 ▲41 | 5.85 ▼0.00 | 98.25 ▼8.74 | 37.39 ▼2.12 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.07 ▲0.03 | 41.53 ▲6.52 | 35.68 ▲3.40 |
Add New Post /wp-admin/post-new.php | 1,527 ▼15 | 17.72 ▼0.64 | 679.65 ▲53.92 | 54.83 ▼3.54 |
Media Library /wp-admin/upload.php | 1,402 ▲11 | 4.26 ▼0.00 | 92.96 ▼5.33 | 43.23 ▼1.14 |
Post Navigator /wp-admin/options-general.php?page=post-navigator-post-types | 814 | 1.77 | 26.05 | 38.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: navigation, posts, next, admin, previous...
post-navigator/init.php 92% from 13 tests
The primary PHP file in "Post Navigator" version 1.3.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("post-navigator.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin271 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 129 | 45 | 195 |
JavaScript | 1 | 29 | 0 | 47 |
CSS | 1 | 9 | 2 | 29 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 4.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 11 | |
▷ Static methods | 9 | 81.82% |
▷ Public methods | 11 | 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 | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/action.png | 3.39KB | 0.67KB | ▼ 80.11% |