68% wp-resources-url-optimization

Code Review | WP Resources URL Optimization

WordPress plugin WP Resources URL Optimization scored68%from 54 tests.

About plugin

  • Plugin page: wp-resources-url-...
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.7.3
  • WordPress version: 6.3.1
  • First release: Nov 28, 2012
  • Latest release: Apr 4, 2017
  • Number of updates: 44
  • Update frequency: every 36.1 days
  • Top authors: lite3 (86.36%)litefeel (15.91%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /7,530 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.94MB] [CPU: ▼32.78ms] Passed 4 tests

Analyzing server-side resources used by WP Resources URL Optimization
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.80 ▲0.62
Dashboard /wp-admin3.00 ▼0.3021.43 ▼24.91
Posts /wp-admin/edit.php3.00 ▼0.3623.12 ▼22.62
Add New Post /wp-admin/post-new.php3.00 ▼2.8923.93 ▼72.22
Media Library /wp-admin/upload.php3.00 ▼0.2323.09 ▼11.37
WP Resources URL Optimization /wp-admin/options-general.php?page=wp-resources-url-optimization/wp-resources-url-optimization.php3.0022.49

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
  • There were 1 file (0.00KB) illegally modified outside of "wp-content/plugins/wp-resources-url-optimization/" and "wp-content/uploads/"
    • (new file) wp-content/wp-resources-back/1.5.0
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
wpruo_option
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

WP Resources URL Optimization: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.26 ▼1.151.82 ▼0.3442.91 ▼0.83
Dashboard /wp-admin2,210 ▲284.88 ▼1.00108.27 ▲3.9639.12 ▼3.89
Posts /wp-admin/edit.php2,096 ▲71.98 ▼0.0134.43 ▼2.8729.87 ▼5.01
Add New Post /wp-admin/post-new.php1,545 ▲2618.28 ▼4.94587.73 ▼90.8652.60 ▼0.22
Media Library /wp-admin/upload.php1,392 ▲14.17 ▼0.0595.63 ▼3.8441.68 ▼2.07
WP Resources URL Optimization /wp-admin/options-general.php?page=wp-resources-url-optimization/wp-resources-url-optimization.php8582.0328.4426.04

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
These items require your attention
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • wpruo_option
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-resources-url-optimization/wp-resources-url-optimization.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-resources-url-optimization/wp-resources-url-optimization.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: resources, plugins, script, query-string, style...

wp-resources-url-optimization/wp-resources-url-optimization.php 92% from 13 tests

The entry point to "WP Resources URL Optimization" version 1.6 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 789 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin362 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP24126278
Markdown255084

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity26.00
▷ Minimum class complexity5.00
▷ Maximum class complexity47.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin