68% url-memory

Code Review | Url Memory

WordPress plugin Url Memory scored68%from 54 tests.

About plugin

  • Plugin page: url-memory
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.1
  • WordPress version: 6.3.1
  • First release: Feb 5, 2013
  • Latest release: Feb 5, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: asadowski10 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /755 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.63 ▼0.87
Dashboard /wp-admin3.43 ▲0.1351.59 ▼0.71
Posts /wp-admin/edit.php3.54 ▲0.1958.36 ▲7.32
Add New Post /wp-admin/post-new.php6.01 ▲0.1392.88 ▼2.43
Media Library /wp-admin/upload.php3.35 ▲0.1236.40 ▼2.96
Manage redirections /wp-admin/tools.php?page=url-memory3.3030.17
URL Memory /wp-admin/options-general.php?page=url-memory3.3538.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.32 ▼0.041.80 ▼0.2943.46 ▼0.84
Dashboard /wp-admin2,206 ▲355.63 ▼0.0083.35 ▼16.2438.88 ▼6.49
Posts /wp-admin/edit.php2,105 ▲52.01 ▲0.0640.51 ▲0.4936.80 ▼6.18
Add New Post /wp-admin/post-new.php1,546 ▲2018.51 ▼4.60618.85 ▼12.5661.73 ▲11.00
Media Library /wp-admin/upload.php1,402 ▼14.18 ▲0.00102.93 ▲6.8141.76 ▼2.32
Manage redirections /wp-admin/tools.php?page=url-memory1,0242.0129.7030.73
URL Memory /wp-admin/options-general.php?page=url-memory8421.8624.5829.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP8138324509
PO File1293473
JavaScript212556
Markdown114027

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 code0.40
Average class complexity16.80
▷ Minimum class complexity3.00
▷ Maximum class complexity23.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods38
▷ Static methods1847.37%
▷ Public methods3694.74%
▷ Protected methods00.00%
▷ Private methods25.26%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.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