10% quick-seo

Code Review | Quick Seo

WordPress plugin Quick Seo scored10%from 54 tests.

About plugin

  • Plugin page: quick-seo
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 1, 2014
  • Latest release: Jun 15, 2014
  • Number of updates: 20
  • Update frequency: every 0.8 days
  • Top authors: rupeshghar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,803 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/quick-seo/meta.php+115
    Trying to get property 'ID' of non-object

Server metrics [RAM: ▼1.90MB] [CPU: ▼58.20ms] Passed 4 tests

This is a short check of server-side resources used by Quick Seo
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.375.01 ▼36.98
Dashboard /wp-admin2.11 ▼1.236.58 ▼53.45
Posts /wp-admin/edit.php2.12 ▼1.245.55 ▼44.97
Add New Post /wp-admin/post-new.php2.11 ▼3.775.57 ▼97.39
Media Library /wp-admin/upload.php2.11 ▼1.117.03 ▼33.03

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
  • The plugin illegally modified 2 files (0.00KB) outside of "wp-content/plugins/quick-seo/" and "wp-content/uploads/"
    • (new file) sitemap.xml
    • (new file) robots.txt
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Quick Seo
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲4914.74 ▲0.371.79 ▲0.0938.23 ▼1.59
Dashboard /wp-admin2,200 ▲205.59 ▼0.0586.36 ▼7.9092.23 ▲54.04
Posts /wp-admin/edit.php2,123 ▲231.98 ▼0.0437.30 ▼4.6030.23 ▼6.79
Add New Post /wp-admin/post-new.php6,443 ▲4,91427.36 ▲4.37917.26 ▲312.6372.33 ▼8.46
Media Library /wp-admin/upload.php1,423 ▲294.13 ▼0.0698.07 ▲1.5876.84 ▲36.91

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/quick-seo/meta.php+115
    Trying to get property 'ID' of non-object
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% 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 take a closer look at the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_type() in wp-content/plugins/quick-seo/meta.php:115
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_type() in wp-content/plugins/quick-seo/meta.php:115
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/quick-seo/button.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (21 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Donate link: Invalid url: ""
You can take inspiration from this readme.txt

quick-seo/quick-seo.php Passed 13 tests

Analyzing the main PHP file in "Quick Seo" version 1.3
99 characters long description:
This plugin allow you to upload search engine optimization activity which helps you to gain ranking

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
There were no executable files found in this plugin309 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP312937309

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Images/facebook.png0.34KB0.29KB▼ 14.94%
Images/youtube.png0.57KB0.61KB0.00%
Images/google.png0.74KB0.66KB▼ 11.24%
Images/twitter.png0.42KB0.39KB▼ 7.01%
Images/icon.png1.34KB0.48KB▼ 64.50%