Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.31ms] Passed 4 tests
Analyzing server-side resources used by Page Planner
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.31 ▲4.55 |
Dashboard /wp-admin | 3.39 ▲0.08 | 47.49 ▼5.09 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 51.09 ▲4.12 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 88.60 ▼19.61 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 38.50 ▲3.34 |
Page Planner /wp-admin/index.php?page=page-planner/planner | 3.31 | 111.59 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Page Planner
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.23 ▼1.14 | 1.75 ▲0.12 | 45.99 ▲9.00 |
Dashboard /wp-admin | 2,212 ▲24 | 4.87 ▼0.18 | 100.88 ▼4.14 | 38.83 ▼3.29 |
Posts /wp-admin/edit.php | 2,095 ▲9 | 2.00 ▲0.00 | 36.45 ▼0.48 | 34.69 ▼2.53 |
Add New Post /wp-admin/post-new.php | 1,519 ▼0 | 23.11 ▲0.02 | 674.67 ▲64.86 | 59.87 ▲4.30 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.22 ▲0.04 | 96.35 ▼4.74 | 40.07 ▼3.37 |
Page Planner /wp-admin/index.php?page=page-planner/planner | 937 | 2.30 | 30.66 | 32.40 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 201 occurences, only the last one shown
- > GET request to /wp-admin/index.php?page=page-planner/planner
- > Notice in wp-content/plugins/page-planner/php/planner.php+229
Undefined index: date
- > GET request to /wp-admin/index.php?page=page-planner/planner
- > Notice in wp-content/plugins/page-planner/php/planner.php+107
Undefined variable: custom_statuses
- > GET request to /wp-admin/index.php?page=page-planner/planner
- > Warning in wp-content/plugins/page-planner/php/planner.php+107
Invalid argument supplied for foreach()
- 200 occurences, only the last one shown
- > GET request to /wp-admin/index.php?page=page-planner/planner
- > Notice in wp-content/plugins/page-planner/php/planner.php+429
Trying to get property 'term_taxonomy_id' of non-object
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 fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/page-planner/page_planner.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in page-planner/assets to your readme.txt
page-planner/page_planner.php 92% from 13 tests
The main PHP script in "Page Planner" version 1.1 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("page-planner.php" instead of "page_planner.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin884 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 78 | 97 | 439 |
JavaScript | 4 | 40 | 320 | 299 |
CSS | 1 | 4 | 3 | 146 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 54.00 |
▷ Minimum class complexity | 54.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 3.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 4 | 50.00% |
▷ Class constants | 4 | 50.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected