62% serped-net

Code Review | SERPed.net

WordPress plugin SERPed.net scored62%from 54 tests.

About plugin

  • Plugin page: serped-net
  • Plugin version: 4.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.0
  • WordPress version: 6.3.1
  • First release: Jul 30, 2020
  • Latest release: Oct 31, 2022
  • Number of updates: 33
  • Update frequency: every 25.0 days
  • Top authors: serpednet (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active /3,358 total downloads

Benchmarks

Plugin footprint 65% 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.63MB] [CPU: ▼34.03ms] Passed 4 tests

This is a short check of server-side resources used by SERPed.net
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2848.81 ▼1.99
Dashboard /wp-admin3.31 ▲0.0125.24 ▼28.69
Posts /wp-admin/edit.php3.31 ▼0.0423.57 ▼33.70
Add New Post /wp-admin/post-new.php3.31 ▼2.5727.66 ▼64.41
Media Library /wp-admin/upload.php3.31 ▲0.0827.36 ▼9.32
Edit /wp-admin/admin.php?page=icp_site_auditor_pro_edit3.3129.70
Site Auditor Pro /wp-admin/admin.php?page=icp_site_auditor_pro3.3127.03
Web Analytics /wp-admin/admin.php?page=icp_tracking_code3.3124.82
Add New /wp-admin/admin.php?page=icp_link_projects_add3.3134.71
Settings /wp-admin/admin.php?page=icp3.3129.32
Add New /wp-admin/admin.php?page=icp_site_auditor_pro_add3.3128.57
Keyword Statistics /wp-admin/admin.php?page=icp_keyword_stats3.3128.28
Edit Project /wp-admin/admin.php?page=icp_link_projects_edit3.3127.27
Link Projects /wp-admin/admin.php?page=icp_link_projects3.3126.13
Keyword Statistics CSV /wp-admin/admin.php?page=icp_keyword_stats_generate3.3125.66

Server storage [IO: ▲1.45MB] [DB: ▲0.01MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
  • Illegal file modification detected: 2 files (1.04KB) outside of "wp-content/plugins/serped-net/" and "wp-content/uploads/"
    • (new file) .htaccessOLD
    • (modified) .htaccess
Filesystem: 69 new files
Database: 6 new tables, 9 new options
New tables
wp_icp_projects
wp_icp_links
wp_icp_project_keywords
wp_icp_keyword_stats
wp_icp_project_links
wp_icp_sa_forms
New WordPress options
widget_recent-comments
widget_theysaidso_widget
serped_db_version
widget_srpd_sm_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_srpd_sa_widget

Browser metrics Passed 4 tests

Checking browser requirements for SERPed.net
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,973 ▲22713.90 ▼0.487.53 ▲5.2739.07 ▼5.38
Dashboard /wp-admin2,261 ▲735.11 ▲0.23115.37 ▼3.0179.49 ▲33.67
Posts /wp-admin/edit.php2,171 ▲822.33 ▲0.3337.90 ▲0.6838.21 ▲1.41
Add New Post /wp-admin/post-new.php1,726 ▲20724.72 ▲1.52654.01 ▼61.8834.66 ▼23.16
Media Library /wp-admin/upload.php1,445 ▲634.42 ▲0.18100.31 ▼21.7274.39 ▲22.05
Edit /wp-admin/admin.php?page=icp_site_auditor_pro_edit7241.146.8820.17
Site Auditor Pro /wp-admin/admin.php?page=icp_site_auditor_pro7251.276.9721.64
Web Analytics /wp-admin/admin.php?page=icp_tracking_code7281.146.1916.14
Add New /wp-admin/admin.php?page=icp_link_projects_add7241.146.8418.04
Settings /wp-admin/admin.php?page=icp8732.0426.8031.07
Add New /wp-admin/admin.php?page=icp_site_auditor_pro_add7241.146.6922.38
Keyword Statistics /wp-admin/admin.php?page=icp_keyword_stats7251.146.4320.28
Edit Project /wp-admin/admin.php?page=icp_link_projects_edit7261.146.9017.75
Link Projects /wp-admin/admin.php?page=icp_link_projects7251.146.2119.56
Keyword Statistics CSV /wp-admin/admin.php?page=icp_keyword_stats_generate8261.9127.3620.73

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
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • This plugin does not fully uninstall, leaving 8 options in the database
    • can_compress_scripts
    • serped_db_version
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_srpd_sm_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 110 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=icp_keyword_stats_generate
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
    • > GET request to /wp-admin/admin.php?page=icp_keyword_stats_generate
    • > Notice in wp-content/plugins/serped-net/inc/pages/icp.keyword.stats.generate.php+2
    Undefined index: download

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
The following issues need your attention
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/serped-net/inc/pages/icp.tracking.code.php
    • > /wp-content/plugins/serped-net/inc/icp.api.php
    • > /wp-content/plugins/serped-net/inc/pages/icp.link.projects.edit.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function srpd_plugin_path() in wp-content/plugins/serped-net/inc/pages/icp.link.projects.php:2
    • > PHP Notice
      Undefined index: download in wp-content/plugins/serped-net/inc/pages/icp.keyword.stats.generate.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
There were not plugin tags detected

serped-net/inner_circle_plugin.php 85% from 13 tests

"SERPed.net" version 4.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("serped-net.php" instead of "inner_circle_plugin.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 182 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin18,421 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript93,2052,78316,351
PHP181651032,045
CSS12017
HTML8008

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.46
Average class complexity11.29
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods53
▷ Static methods00.00%
▷ Public methods53100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions62
▷ Named functions62100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
30 PNG files occupy 0.22MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/site-id-tooltip.png24.98KB12.03KB▼ 51.84%
img/pw_frm1_v2.png5.17KB5.10KB▼ 1.42%
img/logo.png1.16KB0.49KB▼ 57.89%
img/pw_frm3_v2.png5.45KB5.40KB▼ 0.91%
img/sa_bg_2_white.png7.63KB4.57KB▼ 40.06%