Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼1.74ms] Passed 4 tests
Analyzing server-side resources used by Url Memory
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 41.63 ▼0.87 |
Dashboard /wp-admin | 3.43 ▲0.13 | 51.59 ▼0.71 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 58.36 ▲7.32 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 92.88 ▼2.43 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 36.40 ▼2.96 |
Manage redirections /wp-admin/tools.php?page=url-memory | 3.30 | 30.17 |
URL Memory /wp-admin/options-general.php?page=url-memory | 3.35 | 38.95 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 16 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_url_redirect |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Url Memory
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.32 ▼0.04 | 1.80 ▼0.29 | 43.46 ▼0.84 |
Dashboard /wp-admin | 2,206 ▲35 | 5.63 ▼0.00 | 83.35 ▼16.24 | 38.88 ▼6.49 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 2.01 ▲0.06 | 40.51 ▲0.49 | 36.80 ▼6.18 |
Add New Post /wp-admin/post-new.php | 1,546 ▲20 | 18.51 ▼4.60 | 618.85 ▼12.56 | 61.73 ▲11.00 |
Media Library /wp-admin/upload.php | 1,402 ▼1 | 4.18 ▲0.00 | 102.93 ▲6.81 | 41.76 ▼2.32 |
Manage redirections /wp-admin/tools.php?page=url-memory | 1,024 | 2.01 | 29.70 | 30.73 |
URL Memory /wp-admin/options-general.php?page=url-memory | 842 | 1.86 | 24.58 | 29.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_url_redirect
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/tools.php?page=url-memory
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/tools.php?page=url-memory
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
- 4× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined property: stdClass::$prefix in wp-content/plugins/url-memory/url-memory.php on line 35
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/url-memory/inc/class.admin.manage.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/url-memory/url-memory.php:41
- > PHP Warning
Creating default object from empty value in wp-content/plugins/url-memory/url-memory.php on line 34
- > PHP Notice
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)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: url, path, url memory
url-memory/url-memory.php Passed 13 tests
"Url Memory" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
62 characters long description:
Save history URLs for a post and manages 301 redirects for SEO
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 plugin665 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 138 | 324 | 509 |
PO File | 1 | 29 | 34 | 73 |
JavaScript | 2 | 12 | 5 | 56 |
Markdown | 1 | 14 | 0 | 27 |
PHP code Passed 2 tests
A brief analysis 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.40 |
Average class complexity | 16.80 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 18 | 47.37% |
▷ Public methods | 36 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.26% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin