84% consolety

Code Review | Consolety - SEO plugin for Traffic, Authority & Backlinks

WordPress plugin Consolety - SEO plugin for Traffic, Authority & Backlinks scored 84% from 54 tests.

About plugin

  • Plugin page: consolety
  • Plugin version: 4.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.1
  • WordPress version: 5.8.1
  • First release: Mar 19, 2018
  • Latest release: Sep 17, 2021
  • Number of updates: 63
  • Update frequency: every 20.6 days
  • Top authors: brainiacx (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active / 7,744 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼69.72ms] Passed 4 tests

A check of server-side resources used by Consolety - SEO plugin for Traffic, Authority & Backlinks
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.0445.16 ▲7.64
Dashboard /wp-admin3.11 ▲0.0555.03 ▲4.37
Posts /wp-admin/edit.php3.22 ▲0.1156.25 ▲5.71
Add New Post /wp-admin/post-new.php5.50 ▲0.06386.04 ▼296.08
Media Library /wp-admin/upload.php3.05 ▲0.0545.35 ▲7.14

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 44 new files
Database: 1 new table, no new options
New tables
wp_consolety_links

Browser metrics Passed 4 tests

A check of browser resources used by Consolety - SEO plugin for Traffic, Authority & Backlinks
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,796 ▲22416.13 ▲0.4010.79 ▼0.5349.26 ▼5.91
Dashboard /wp-admin3,045 ▲1147.01 ▲1.03154.30 ▼10.43142.38 ▲17.56
Posts /wp-admin/edit.php2,850 ▲1112.49 ▼0.2369.28 ▼4.34112.28 ▲23.83
Add New Post /wp-admin/post-new.php1,700 ▼2,03315.43 ▼2.98419.95 ▼81.39145.81 ▲24.15
Media Library /wp-admin/upload.php1,836 ▲295.40 ▲0.36147.29 ▼11.89159.64 ▲25.20

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 failed, leaving 1 table in the database
    • wp_consolety_links

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/consolety/classes/Admin/Tables/ExportedPosts.php on line 7
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/consolety/classes/Admin/Tables/ExportedPosts.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Consolety\\plugin_dir_url() in wp-content/plugins/consolety/consolety.php:20
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/consolety/classes/Admin/Tables/ExportedPosts.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: seo, link exchange, link building, link partner, backlinks

consolety/consolety.php 92% from 13 tests

The primary PHP file in "Consolety - SEO plugin for Traffic, Authority & Backlinks" version 4.0.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 149 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
Success! There were no dangerous files found in this plugin2,836 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP245234702,332
CSS1173344
JavaScript1210140
JSON20020

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity16.83
▷ Minimum class complexity1.00
▷ Maximum class complexity90.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods137
▷ Static methods2618.98%
▷ Public methods13296.35%
▷ Protected methods00.00%
▷ Private methods53.65%
Functions10
▷ Named functions110.00%
▷ Anonymous functions990.00%
Constants16
▷ Global constants318.75%
▷ Class constants1381.25%
▷ Public constants17.69%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
13 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/site-status/declined.png1.96KB0.80KB▼ 59.00%
img/tip.png1.69KB1.37KB▼ 18.70%
img/site-status/verification.png2.23KB1.13KB▼ 49.23%
img/site-status/inactive.png1.94KB0.78KB▼ 59.64%
img/consolety-logo-eye.png1.39KB1.44KB0.00%