10% seo-searchterms-admin

Code Review | SEO SearchTerms Admin

WordPress plugin SEO SearchTerms Admin scored10%from 54 tests.

About plugin

  • Plugin page: seo-searchterms-a...
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.6
  • WordPress version: 6.3.1
  • First release: Aug 22, 2013
  • Latest release: Aug 22, 2013
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: jmagnone (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /17,564 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • This plugin did not install gracefully
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'searchterms-admin' not found

Server metrics [RAM: ▲0.06MB] [CPU: ▼1.70ms] Passed 4 tests

An overview of server-side resources used by SEO SearchTerms Admin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0546.61 ▲2.54
Dashboard /wp-admin3.37 ▲0.0751.01 ▼2.62
Posts /wp-admin/edit.php3.42 ▲0.0753.64 ▲0.31
Add New Post /wp-admin/post-new.php5.95 ▲0.0796.32 ▼7.02
Media Library /wp-admin/upload.php3.30 ▲0.0739.00 ▲3.26

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for SEO SearchTerms Admin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲13613.40 ▼1.008.87 ▲7.1642.63 ▼1.14
Dashboard /wp-admin2,195 ▲185.65 ▲0.0684.84 ▼7.5441.49 ▲2.25
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0540.99 ▲0.4634.63 ▼6.14
Add New Post /wp-admin/post-new.php6,216 ▲4,68119.07 ▲0.96893.65 ▲221.5451.99 ▼14.02
Media Library /wp-admin/upload.php1,403 ▲34.24 ▲0.0396.06 ▼16.2946.94 ▼1.68

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
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'searchterms-admin' not found
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/seo-searchterms-admin/views/public.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/seo-searchterms-admin/views/admin.php:17

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 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === seo-searchterms-admin === )
  • Screenshots: Screenshot #1 (Example showing the incoming search terms under the post editor for a website running the plugin http://slidehunter.com) image missing
You can look at the official readme.txt

seo-searchterms-admin/searchterms-admin.php 85% from 13 tests

The entry point to "SEO SearchTerms Admin" version 0.1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("seo-searchterms-admin.php" instead of "searchterms-admin.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
There were no executable files found in this plugin143 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP660230133
JavaScript20210
CSS2020

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods320.00%
▷ Public methods1493.33%
▷ Protected methods00.00%
▷ Private methods16.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.15MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png110.27KB46.00KB▼ 58.28%
img/yes.png0.86KB0.62KB▼ 28.65%
screenshot-1.png45.64KB45.08KB▼ 1.24%
img/cross.png0.64KB0.72KB0.00%