Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/wp-table-of-paginated-contents/wp-table-of-paginated-contents.php+29
Methods with the same name as their class will not be constructors in a future version of PHP; WPtopc has a deprecated constructor
Server metrics [RAM: ▼0.94MB] [CPU: ▼35.84ms] Passed 4 tests
This is a short check of server-side resources used by Author: António Andrade
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.46 ▼6.32 |
Dashboard /wp-admin | 3.00 ▼0.30 | 21.78 ▼31.15 |
Posts /wp-admin/edit.php | 3.00 ▼0.35 | 23.27 ▼26.49 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.88 | 23.20 ▼73.62 |
Media Library /wp-admin/upload.php | 3.00 ▼0.22 | 22.41 ▼12.11 |
Table of Paginated Contents /wp-admin/options-general.php?page=wp-table-of-paginated-contents/wp-table-of-paginated-contents.php | 3.00 | 24.11 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Author: António Andrade: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.75 ▲0.48 | 1.73 ▲0.04 | 40.86 ▲2.28 |
Dashboard /wp-admin | 2,202 ▲25 | 5.64 ▼0.04 | 83.73 ▼6.74 | 36.81 ▼1.50 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.94 ▼0.04 | 33.83 ▼5.87 | 32.32 ▲1.73 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 22.96 ▼0.25 | 609.74 ▼16.15 | 57.65 ▼15.20 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.16 ▲0.05 | 100.37 ▲0.90 | 44.79 ▲1.00 |
Table of Paginated Contents /wp-admin/options-general.php?page=wp-table-of-paginated-contents/wp-table-of-paginated-contents.php | 951 | 1.83 | 30.31 | 40.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-table-of-paginated-contents/wp-table-of-paginated-contents.php
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=wp-table-of-paginated-contents/wp-table-of-paginated-contents.php
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WPtopc::wptopc_page_style() should not be called statically
- > GET request to /wp-admin/options-general.php?page=wp-table-of-paginated-contents/wp-table-of-paginated-contents.php
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WPtopc::wptopc_page_script() should not be called statically
- > GET request to /wp-admin/options-general.php?page=wp-table-of-paginated-contents/wp-table-of-paginated-contents.php
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WPtopc::wptopc_page() should not be called statically
- > GET request to /wp-admin/options-general.php?page=wp-table-of-paginated-contents/wp-table-of-paginated-contents.php
- > Notice in wp-content/plugins/wp-table-of-paginated-contents/wp-table-of-paginated-contents.php+175
Undefined index: action
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-table-of-paginated-contents/index.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-table-of-paginated-contents/wp-table-of-paginated-contents-ui.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-table-of-paginated-contents/wp-table-of-paginated-contents-ui.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-table-of-paginated-contents/wp-table-of-paginated-contents.php:195
- > PHP Warning
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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Screenshot #1 (The outputs (check the usage section).) image not found
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== Author: António Andrade===
)
wp-table-of-paginated-contents/wp-table-of-paginated-contents.php Passed 13 tests
This is the main PHP file of "Author: António Andrade" version 2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
109 characters long description:
Handles naming of each post page through a TinyMCE button and produces a Table of Contents for the said post.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected535 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 22 | 30 | 295 |
Sass | 1 | 23 | 0 | 103 |
CSS | 1 | 23 | 0 | 79 |
JavaScript | 2 | 2 | 1 | 58 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.11MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 32.24KB | 14.95KB | ▼ 53.64% |
images/WPtopc.png | 0.47KB | 0.38KB | ▼ 18.37% |
screenshot-3.png | 14.36KB | 7.78KB | ▼ 45.79% |
images/antonioandra.de_favicon.png | 0.68KB | 0.76KB | 0.00% |
screenshot-2.png | 62.45KB | 24.42KB | ▼ 60.89% |