79% sr-partner

Code Review | SEOReseller Partner Plugin

WordPress plugin SEOReseller Partner Plugin scored 79% from 54 tests.

About plugin

  • Plugin page: sr-partner
  • Plugin version: 1.3.15
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3.2
  • WordPress version: 6.3.1
  • First release: Aug 22, 2017
  • Latest release: Jul 15, 2020
  • Number of updates: 36
  • Update frequency: every 29.5 days
  • Top authors: itamarg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active / 17,739 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.82ms] Passed 4 tests

Server-side resources used by SEOReseller Partner Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.84 ▲1.14
Dashboard /wp-admin3.33 ▲0.0348.58 ▲5.74
Posts /wp-admin/edit.php3.45 ▲0.0948.46 ▼2.64
Add New Post /wp-admin/post-new.php5.93 ▲0.0584.30 ▼19.63
Media Library /wp-admin/upload.php3.26 ▲0.0336.93 ▲1.87

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 86 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for SEOReseller Partner Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲9313.78 ▼0.631.67 ▼0.0244.28 ▼4.52
Dashboard /wp-admin2,231 ▲464.99 ▼0.11110.12 ▲9.8337.83 ▼2.87
Posts /wp-admin/edit.php2,099 ▲102.25 ▲0.2137.51 ▼4.0533.83 ▼1.50
Add New Post /wp-admin/post-new.php1,693 ▲16022.31 ▼0.98645.98 ▼19.4351.05 ▼3.31
Media Library /wp-admin/upload.php1,419 ▲284.26 ▲0.05102.24 ▼3.6343.68 ▲0.32

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/sr-partner/public/partials/sr-partner-public-display.php
  • 26× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'SR_Partner_Core' not found in wp-content/plugins/sr-partner/integrations/class-integrate-CFormsII.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'SR_Partner_Core' not found in wp-content/plugins/sr-partner/integrations/class-integrate-CalderaForms.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'SR_Partner_Core' not found in wp-content/plugins/sr-partner/includes/class-sr-partner.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'SR_Partner_Core' not found in wp-content/plugins/sr-partner/integrations/class-integrate-WRContactForms.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sr-partner/admin/partials/web-design-portfolio/form.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'SR_Partner_Core' not found in wp-content/plugins/sr-partner/admin/class-sr-partner-admin.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'SR_Partner_Core' not found in wp-content/plugins/sr-partner/includes/class-sr-partner-deactivator.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'SR_Partner_Core' not found in wp-content/plugins/sr-partner/integrations/class-integrate-FormidableForms.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sr-partner/admin/partials/web-design-portfolio/preview.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sr-partner/includes/class-sr-partner-core.php:6

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: digital marketing agency, portfolio, lead tracking, seo audit, agency...

sr-partner/sr-partner.php Passed 13 tests

The entry point to "SEOReseller Partner Plugin" version 1.3.15 is a PHP file that has certain tags in its header comment area
95 characters long description:
SEOReseller's suite of tools for building, managing, and growing your digital marketing agency.

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
No dangerous file extensions were detected10,608 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
CSS7383294,235
PHP357951,3143,911
JavaScript6295632,103
PO File11741359

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity18.60
▷ Minimum class complexity1.00
▷ Maximum class complexity124.00
Average method complexity4.55
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes25
▷ Abstract classes00.00%
▷ Concrete classes25100.00%
▷ Final classes00.00%
Methods124
▷ Static methods00.00%
▷ Public methods9375.00%
▷ Protected methods00.00%
▷ Private methods3125.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants29
▷ Global constants2689.66%
▷ Class constants310.34%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
24 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/sadface.png2.32KB1.19KB▼ 48.67%
admin/images/select2.png0.51KB0.33KB▼ 34.94%
admin/images/slider.png0.31KB1.51KB0.00%
admin/images/colorpicker_hsb_h.png0.99KB0.77KB▼ 21.94%
admin/images/colorpicker_hex.png0.52KB0.42KB▼ 19.92%