84% outranking

Code Review | Outranking Plugin Options

WordPress plugin Outranking Plugin Options scored84%from 54 tests.

About plugin

  • Plugin page: outranking
  • Plugin version: 1.1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jul 1, 2021
  • Latest release: Oct 25, 2023
  • Number of updates: 12
  • Update frequency: every 70.6 days
  • Top authors: outranking (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,925 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼3.22ms] Passed 4 tests

Server-side resources used by Outranking Plugin Options
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1336.07 ▼1.10
Dashboard /wp-admin3.43 ▲0.1244.38 ▼1.46
Posts /wp-admin/edit.php3.54 ▲0.1844.45 ▼1.06
Add New Post /wp-admin/post-new.php6.04 ▲0.1681.17 ▼9.25
Media Library /wp-admin/upload.php3.35 ▲0.1236.98 ▲2.35

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Outranking Plugin Options: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.17 ▼0.181.60 ▼0.0937.08 ▼5.67
Dashboard /wp-admin2,199 ▲195.55 ▼0.1280.74 ▼4.7438.30 ▼5.14
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0334.85 ▼1.0831.74 ▼1.41
Add New Post /wp-admin/post-new.php6,466 ▲4,93828.90 ▲5.72993.59 ▲325.2578.36 ▲25.86
Media Library /wp-admin/upload.php1,404 ▲44.21 ▼0.0193.57 ▼13.7341.33 ▼7.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      include_once(ABSPATH/wp-admin/includes/media.php): failed to open stream: No such file or directory in wp-content/plugins/outranking/inc/core.php on line 8
    • > PHP Warning
      include_once(): Failed opening 'ABSPATH/wp-admin/includes/media.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/outranking/inc/core.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/outranking/api/api.php:30
    • > PHP Warning
      include_once(): Failed opening 'ABSPATH/wp-admin/includes/file.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/outranking/inc/core.php on line 4
    • > PHP Warning
      include_once(ABSPATH/wp-includes/post.php): failed to open stream: No such file or directory in wp-content/plugins/outranking/inc/core.php on line 11
    • > PHP Warning
      include_once(ABSPATH/wp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/outranking/inc/core.php on line 4
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/outranking/inc/core.php on line 8
    • > PHP Warning
      include_once(): Failed opening 'ABSPATH/wp-includes/post.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/outranking/inc/core.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/outranking/outranking.php:16
    • > PHP Warning
      include_once(ABSPATH/wp-admin/includes/image.php): failed to open stream: No such file or directory in wp-content/plugins/outranking/inc/core.php on line 7

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)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt might help

outranking/outranking.php Passed 13 tests

The principal PHP file in "Outranking Plugin Options" v. 1.1.3 is loaded by WordPress automatically on each request
34 characters long description:
Outranking Extension for WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,407 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP660407675
CSS17214359
JavaScript10133305
SVG60068

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity37.00
▷ Minimum class complexity37.00
▷ Maximum class complexity37.00
Average method complexity10.00
▷ Minimum method complexity3.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods4100.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions29
▷ Named functions2482.76%
▷ Anonymous functions517.24%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/outranking_white_long.png2.85KB1.88KB▼ 33.97%
assets/images/outranking_dark_long.png1.54KB1.50KB▼ 2.35%