78% feecompass-rankings

Code Review | feeCOMPASS ranking

WordPress plugin feeCOMPASS ranking scored78%from 54 tests.

About plugin

  • Plugin page: feecompass-rankings
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.3
  • WordPress version: 6.3.1
  • First release: Nov 15, 2019
  • Latest release: Nov 20, 2019
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: feecompass (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /469 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.42MB] [CPU: ▼13.58ms] Passed 4 tests

An overview of server-side resources used by feeCOMPASS ranking
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2942.91 ▼1.07
Dashboard /wp-admin3.59 ▲0.2951.68 ▲5.22
Posts /wp-admin/edit.php3.64 ▲0.2951.50 ▲1.18
Add New Post /wp-admin/post-new.php3.42 ▼2.4740.30 ▼54.98
Media Library /wp-admin/upload.php3.45 ▲0.2338.03 ▲0.56

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 59 new files
Database: no new tables, 7 new options
New WordPress options
wpfc_db_version
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for feeCOMPASS ranking
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲4713.31 ▼1.075.32 ▲3.1645.04 ▲4.99
Dashboard /wp-admin2,219 ▲284.88 ▲0.01110.63 ▲4.4240.99 ▲1.71
Posts /wp-admin/edit.php2,108 ▲192.00 ▲0.0039.65 ▼1.1835.37 ▼1.57
Add New Post /wp-admin/post-new.php1,550 ▲1723.19 ▲0.08650.50 ▼24.1655.06 ▲3.87
Media Library /wp-admin/upload.php1,404 ▲134.15 ▼0.0994.99 ▼9.1839.99 ▼4.13

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • wpfc_db_version
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 14× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/feecompass-rankings/inc/general/Localization.class.php
    • > /wp-content/plugins/feecompass-rankings/inc/general/Activator.class.php
    • > /wp-content/plugins/feecompass-rankings/inc/base/Base.class.php
    • > /wp-content/plugins/feecompass-rankings/inc/others/fallback-php-version.php
    • > /wp-content/plugins/feecompass-rankings/inc/general/Assets.class.php
    • > /wp-content/plugins/feecompass-rankings/inc/others/fallback-wp-version.php
    • > /wp-content/plugins/feecompass-rankings/inc/base/Core.class.php
    • > /wp-content/plugins/feecompass-rankings/inc/rest/Service.class.php
    • > /wp-content/plugins/feecompass-rankings/inc/menu/Page.class.php
    • > /wp-content/plugins/feecompass-rankings/inc/general/Core.class.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Trait 'Ahc\\Jwt\\ValidatesJWT' not found in wp-content/plugins/feecompass-rankings/vendor/adhocore/jwt/src/JWT.php on line 22
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/feecompass-rankings/vendor/adhocore/jwt/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/feecompass-rankings/vendor/adhocore/jwt/tests/bootstrap.php on line 12
    • > PHP Warning
      require_once(wp-content/plugins/feecompass-rankings/vendor/adhocore/jwt/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/feecompass-rankings/vendor/adhocore/jwt/tests/bootstrap.php on line 12
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/feecompass-rankings/vendor/adhocore/jwt/tests/JWTTest.php:17

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid URI ("")
The official readme.txt is a good inspiration

feecompass-rankings/index.php 92% from 13 tests

The main file in "feeCOMPASS ranking" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("feecompass-rankings.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected3,824 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript34041522,259
PHP302817311,286
Markdown3460122
JSON20081
PO File191131
XML11023
YAML28222

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity10.12
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.59
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces7
Interfaces0
Traits1
Classes15
▷ Abstract classes320.00%
▷ Concrete classes1280.00%
▷ Final classes00.00%
Methods94
▷ Static methods55.32%
▷ Public methods7984.04%
▷ Protected methods1212.77%
▷ Private methods33.19%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants30
▷ Global constants1136.67%
▷ Class constants1963.33%
▷ Public constants19100.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