84% mpress-fix-url-references

Code Review | mPress Fix URL References

WordPress plugin mPress Fix URL References scored84%from 54 tests.

About plugin

  • Plugin page: mpress-fix-url-re...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.5.2
  • WordPress version: 6.3.1
  • First release: Dec 8, 2012
  • Latest release: Jun 5, 2016
  • Number of updates: 6
  • Update frequency: every 215.7 days
  • Top authors: woodent (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /5,923 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼11.52ms] Passed 4 tests

An overview of server-side resources used by mPress Fix URL References
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.50 ▼0.78
Dashboard /wp-admin3.33 ▼0.0147.62 ▼16.31
Posts /wp-admin/edit.php3.38 ▲0.0351.82 ▼1.63
Add New Post /wp-admin/post-new.php5.91 ▲0.0379.67 ▼27.35
Media Library /wp-admin/upload.php3.26 ▲0.0339.53 ▲5.82
Fix URL References /wp-admin/tools.php?page=mpress-fix-url-references3.2230.78

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for mPress Fix URL References
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.67 ▼0.711.72 ▼0.0141.17 ▲1.51
Dashboard /wp-admin2,222 ▲195.79 ▲0.91113.96 ▲12.2742.18 ▼1.83
Posts /wp-admin/edit.php2,104 ▲42.02 ▼0.0337.77 ▼3.3537.88 ▲0.23
Add New Post /wp-admin/post-new.php1,548 ▲1723.00 ▼0.14680.08 ▲49.2757.35 ▲0.83
Media Library /wp-admin/upload.php1,401 ▲44.27 ▲0.03107.78 ▲2.3950.54 ▲8.39
Fix URL References /wp-admin/tools.php?page=mpress-fix-url-references7712.0224.2924.44

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mpress-fix-url-references/mpress-fix-url-references.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: links, database, mpress, link, migration...

mpress-fix-url-references/mpress-fix-url-references.php Passed 13 tests

The main PHP script in "mPress Fix URL References" version 1.0 is automatically included on every request by WordPress
53 characters long description:
Easily fix URL references in your WordPress database.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin69 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1144069

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods240.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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