68% seopilot

Code Review | SeoPilot

WordPress plugin SeoPilot scored68%from 54 tests.

About plugin

  • Plugin page: seopilot
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.6.1
  • WordPress version: 6.3.1
  • First release: Sep 18, 2013
  • Latest release: Sep 19, 2013
  • Number of updates: 8
  • Update frequency: every 86.0 days
  • Top authors: radke447 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,314 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.93MB] [CPU: ▼46.78ms] Passed 4 tests

Analyzing server-side resources used by SeoPilot
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.48 ▼2.27
Dashboard /wp-admin3.02 ▼0.3223.44 ▼39.61
Posts /wp-admin/edit.php3.02 ▼0.3329.56 ▼20.53
Add New Post /wp-admin/post-new.php3.02 ▼2.8626.98 ▼117.44
Media Library /wp-admin/upload.php3.02 ▼0.2125.68 ▼9.53

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
widget_seopilot
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for SeoPilot
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲1914.69 ▲0.341.73 ▼0.1345.70 ▲4.32
Dashboard /wp-admin2,211 ▲315.63 ▼0.0188.19 ▲1.9936.51 ▼6.19
Posts /wp-admin/edit.php2,116 ▲191.96 ▲0.0041.18 ▲4.0636.46 ▲1.88
Add New Post /wp-admin/post-new.php1,544 ▲1623.07 ▼0.08655.72 ▲42.7648.96 ▼13.76
Media Library /wp-admin/upload.php1,416 ▲194.22 ▲0.00104.70 ▼1.6041.94 ▼1.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method SeoPilot::SeoPilot_Admin_Menu() should not be called statically
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_seopilot
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/seopilot/SeoPilotClient.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/seopilot/inc/widgets.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/seopilot/seopilot.php:108

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: seopilot, seopilotpl

seopilot/seopilot.php Passed 13 tests

The primary PHP file in "SeoPilot" version 1.1 is used by WordPress to initiate all plugin functionality
50 characters long description:
Plugin do wyświetlania reklam systemu SeoPilot.pl

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
Good job! No executable or dangerous file extensions detected459 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP39946459

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity27.67
▷ Minimum class complexity2.00
▷ Maximum class complexity73.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods20
▷ Static methods210.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin