68% basic-seo-pack

Code Review | Basic SEO Pack

WordPress plugin Basic SEO Pack scored68%from 54 tests.

About plugin

  • Plugin page: basic-seo-pack
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-3.5
  • WordPress version: 6.3.1
  • First release: Dec 22, 2012
  • Latest release: Jan 13, 2013
  • Number of updates: 38
  • Update frequency: every 0.6 days
  • Top authors: auastyle (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /43,632 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼1.93MB] [CPU: ▼53.46ms] Passed 4 tests

A check of server-side resources used by Basic SEO Pack
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.55 ▼37.84
Dashboard /wp-admin2.08 ▼1.226.00 ▼45.15
Posts /wp-admin/edit.php2.08 ▼1.275.50 ▼45.50
Add New Post /wp-admin/post-new.php2.08 ▼3.816.03 ▼85.34
Media Library /wp-admin/upload.php2.08 ▼1.155.34 ▼34.29
Basic SEO /wp-admin/options-general.php?page=bseop-options2.085.62

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Basic SEO Pack
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6413.34 ▼0.954.52 ▲2.3442.72 ▼4.32
Dashboard /wp-admin2,210 ▲285.91 ▲0.03110.85 ▼1.7541.02 ▲1.73
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0739.15 ▼3.3234.63 ▼6.74
Add New Post /wp-admin/post-new.php6,247 ▲4,73325.94 ▲8.47881.11 ▲176.8259.97 ▲6.85
Media Library /wp-admin/upload.php1,392 ▲104.28 ▲0.0495.07 ▼9.2343.42 ▼1.62
Basic SEO /wp-admin/options-general.php?page=bseop-options9172.0327.0648.28

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin cannot be uninstalled
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method BasicSEO::init() should not be called statically
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=bseop-options
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method BasicSEO::init() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=bseop-options
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method BasicSEO::init_menu() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=bseop-options
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method BasicSEO::manage_options() should not be called statically

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/basic-seo-pack/basic-seo-pack.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (Basic SEO options page where you can set global keywords and description), #2 (Basic SEO options page where you can set Search engine verification (google, bing)), #3 (Alexa verification and google analytics), #4 (Basic SEO metabox displayed on a single page/post edit form)
You can look at the official readme.txt

basic-seo-pack/basic-seo-pack.php 92% from 13 tests

The main file in "Basic SEO Pack" v. 1.1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 268 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
Good job! No executable or dangerous file extensions detected367 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP114496367

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity81.00
▷ Minimum class complexity81.00
▷ Maximum class complexity81.00
Average method complexity7.15
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
7 PNG files occupy 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png17.75KB6.95KB▼ 60.84%
screenshot-4.png22.14KB8.61KB▼ 61.13%
screenshot-1.png31.64KB12.16KB▼ 61.55%
images/as-234x60.png16.44KB6.01KB▼ 63.42%
images/5-stars.png5.86KB2.94KB▼ 49.79%