84% mw-theme-uri-shortcode

Code Review | MW Theme URI Shortcode

WordPress plugin MW Theme URI Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: mw-theme-uri-shor...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.5
  • WordPress version: 6.3.1
  • First release: Aug 5, 2013
  • Latest release: Aug 5, 2013
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: inc2734 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,109 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Server-side resources used by MW Theme URI Shortcode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.13 ▼4.87
Dashboard /wp-admin3.32 ▲0.0249.32 ▲0.62
Posts /wp-admin/edit.php3.37 ▲0.0248.43 ▼3.38
Add New Post /wp-admin/post-new.php5.90 ▲0.0287.06 ▼14.37
Media Library /wp-admin/upload.php3.24 ▲0.0238.48 ▲4.30

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for MW Theme URI Shortcode
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5713.63 ▼0.751.66 ▼0.2442.50 ▼3.22
Dashboard /wp-admin2,206 ▲185.79 ▲0.76107.41 ▼9.8938.91 ▼2.90
Posts /wp-admin/edit.php2,095 ▲62.00 ▼0.0140.54 ▼0.7836.22 ▲0.31
Add New Post /wp-admin/post-new.php1,536 ▲1522.94 ▼0.22669.00 ▼7.2159.49 ▲9.70
Media Library /wp-admin/upload.php1,394 ▲124.21 ▲0.00101.14 ▼5.0347.30 ▲0.70

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mw-theme-uri-shortcode/mw-theme-uri-shortcode.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 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
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === mw-theme-uri-shortcode === )
  • Donate link: Invalid URI ("")
You can look at the official readme.txt

mw-theme-uri-shortcode/mw-theme-uri-shortcode.php Passed 13 tests

The entry point to "MW Theme URI Shortcode" version 0.1 is a PHP file that has certain tags in its header comment area
74 characters long description:
MW Theme URI Shortcode to make a shortcord outputting theme directory uri.

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
No dangerous file extensions were detected140 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript11069
PHP164543
PO File14928

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin