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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼12.50ms] Passed 4 tests
Server-side resources used by Rotem Navigator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 46.15 ▲1.46 |
Dashboard /wp-admin | 3.37 ▲0.02 | 51.29 ▼16.02 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 52.79 ▼7.54 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 91.12 ▼26.97 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 39.79 ▲0.54 |
Rotem Navigator Settings /wp-admin/options-general.php?page=rotem-navigator-settings | 3.26 | 35.06 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Rotem Navigator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲147 | 13.43 ▼1.10 | 10.03 ▲8.22 | 44.81 ▼0.65 |
Dashboard /wp-admin | 2,203 ▲26 | 5.56 ▼0.10 | 89.94 ▼9.69 | 40.00 ▼2.89 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 2.02 ▲0.00 | 37.41 ▼3.16 | 36.42 ▼3.10 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.52 ▲0.57 | 690.52 ▲33.23 | 66.67 ▲0.58 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.15 ▼0.04 | 96.70 ▼9.31 | 43.08 ▼4.54 |
Rotem Navigator Settings /wp-admin/options-general.php?page=rotem-navigator-settings | 795 | 2.01 | 24.53 | 28.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/rotem-navigator/public/partials/rotem-navigator-public-display.php
- > /wp-content/plugins/rotem-navigator/admin/partials/rotem-navigator-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== rotem-navigator ===
) - Screenshots: Please add descriptions for these screenshots #1, #2, #3 in rotem-navigator/assets to your readme.txt
rotem-navigator/rotem-navigator.php Passed 13 tests
The entry point to "Rotem Navigator" version 1.0.0 is a PHP file that has certain tags in its header comment area
99 characters long description:
The plugin add a navigator to posts so there are anchors to each H2 title from the top of the post.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin323 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 150 | 547 | 255 |
JavaScript | 2 | 13 | 54 | 55 |
CSS | 2 | 3 | 8 | 13 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 1.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 25 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.67% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
No PNG images were found in this plugin