Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/related-pages/relatedpages.php+25
Constant WP_POST_REVISIONS already defined
Server metrics [RAM: ▼0.83MB] [CPU: ▼170.29ms] Passed 4 tests
A check of server-side resources used by Related Pages
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.09 | 45.38 ▲9.39 |
Dashboard /wp-admin | 2.82 ▼0.23 | 28.83 ▼20.71 |
Posts /wp-admin/edit.php | 2.82 ▼0.28 | 28.82 ▼13.30 |
Add New Post /wp-admin/post-new.php | 2.82 ▼2.61 | 31.65 ▼627.95 |
Media Library /wp-admin/upload.php | 2.82 ▼0.18 | 27.28 ▼19.21 |
Related Pages /wp-admin/tools.php?page=relatedpages | 2.82 | 28.17 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: 4 new tables, no new options
New tables |
---|
wp_rpd_titles |
wp_rpd_related_pages |
wp_rpd_relations |
wp_rpd_settings |
Browser metrics Passed 4 tests
An overview of browser requirements for Related Pages
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,838 ▲256 | 17.25 ▲1.25 | 11.71 ▲0.35 | 45.40 ▼10.04 |
Dashboard /wp-admin | 3,128 ▲194 | 7.82 ▲1.72 | 170.54 ▲22.13 | 114.46 ▲2.46 |
Posts /wp-admin/edit.php | 2,821 ▲82 | 3.67 ▲0.96 | 92.46 ▲22.24 | 108.08 ▲20.92 |
Add New Post /wp-admin/post-new.php | 1,487 ▼185 | 14.83 ▼3.94 | 319.25 ▼61.71 | 61.35 ▼50.62 |
Media Library /wp-admin/upload.php | 1,829 ▲22 | 6.48 ▲1.48 | 174.06 ▲10.31 | 121.74 ▼1.65 |
Related Pages /wp-admin/tools.php?page=relatedpages | 1,535 | 3.20 | 85.33 | 123.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5495
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 plugin did not uninstall successfully, leaving 4 tables in the database
- wp_rpd_related_pages
- wp_rpd_relations
- wp_rpd_settings
- wp_rpd_titles
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=relatedpages
- > User deprecated in wp-includes/functions.php+5495
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/tools.php?page=relatedpages
- > Notice in wp-content/plugins/related-pages/relatedpages.php+204
Undefined index: zmaz_id
- > GET request to /wp-admin/tools.php?page=relatedpages
- > Notice in wp-content/plugins/related-pages/relatedpages.php+213
Undefined index: mod_url
- > GET request to /wp-admin/tools.php?page=relatedpages
- > Notice in wp-content/plugins/related-pages/relatedpages.php+214
Undefined index: mod_name
- > GET request to /wp-admin/tools.php?page=relatedpages
- > Notice in wp-content/plugins/related-pages/relatedpages.php+215
Undefined index: mod_trieda
- > GET request to /wp-admin/tools.php?page=relatedpages
- > Notice in wp-content/plugins/related-pages/relatedpages.php+216
Undefined index: mod_attr
- > GET request to /wp-admin/tools.php?page=relatedpages
- > Notice in wp-content/plugins/related-pages/relatedpages.php+217
Undefined index: mod_ciel
- > GET request to /wp-admin/tools.php?page=relatedpages
- > Notice in wp-content/plugins/related-pages/relatedpages.php+218
Undefined index: mod_id
- > GET request to /wp-admin/tools.php?page=relatedpages
- > Notice in wp-content/plugins/related-pages/relatedpages.php+231
Undefined index: rpd_url
- > GET request to /wp-admin/tools.php?page=relatedpages
- > Notice in wp-content/plugins/related-pages/relatedpages.php+232
Undefined index: rpd_name
- > GET request to /wp-admin/tools.php?page=relatedpages
- > Notice in wp-content/plugins/related-pages/relatedpages.php+233
Undefined index: rpd_attr
- > GET request to /wp-admin/tools.php?page=relatedpages
- > Notice in wp-content/plugins/related-pages/relatedpages.php+234
Undefined index: rpd_trgt
- > GET request to /wp-admin/tools.php?page=relatedpages
- > Notice in wp-content/plugins/related-pages/relatedpages.php+235
Undefined index: rpd_class
- > GET request to /wp-admin/tools.php?page=relatedpages
- > Notice in wp-content/plugins/related-pages/relatedpages.php+247
Undefined index: def_titul
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/related-pages/relatedpages.php on line 30
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/related-pages/relatedpages.php on line 32
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/related-pages/relatedpages.php on line 29
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/related-pages/relatedpages.php on line 31
- > PHP Fatal error
Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/related-pages/relatedpages.php:168
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/tools.php?page=relatedpages
- > Javascript (severe) in unknown
/wp-admin/tools.php?page=relatedpages 246:40 Uncaught TypeError: Cannot read properties of null (reading 'style')
- 2 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=relatedpages
- > Javascript (warning) in unknown
https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js?ver=1.9.0 30 A parser-blocking, cross site (i.e. different eTLD+1) script, https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/builder.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
- > GET request to /wp-admin/tools.php?page=relatedpages
- > Javascript (warning) in unknown
https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js?ver=1.9.0 30 A parser-blocking, cross site (i.e. different eTLD+1) script, https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/effects.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
- > GET request to /wp-admin/tools.php?page=relatedpages
- > Javascript (warning) in unknown
https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js?ver=1.9.0 30 A parser-blocking, cross site (i.e. different eTLD+1) script, https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/dragdrop.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
- > GET request to /wp-admin/tools.php?page=relatedpages
- > Javascript (warning) in unknown
https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js?ver=1.9.0 30 A parser-blocking, cross site (i.e. different eTLD+1) script, https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/controls.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
- > GET request to /wp-admin/tools.php?page=relatedpages
- > Javascript (warning) in unknown
https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js?ver=1.9.0 30 A parser-blocking, cross site (i.e. different eTLD+1) script, https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/slider.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
- > GET request to /wp-admin/tools.php?page=relatedpages
- > Javascript (warning) in unknown
https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js?ver=1.9.0 30 A parser-blocking, cross site (i.e. different eTLD+1) script, https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/sound.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== related-pages ===
)
related-pages/relatedpages.php 92% from 13 tests
The principal PHP file in "Related Pages" v. 1.1.9.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("related-pages.php" instead of "relatedpages.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin802 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 129 | 92 | 557 |
CSS | 2 | 25 | 2 | 168 |
JavaScript | 1 | 10 | 16 | 77 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
PNG images were not found in this plugin