84% sky-seo

Code Review | Sky Seo

WordPress plugin Sky Seo scored84%from 54 tests.

About plugin

  • Plugin page: sky-seo
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.4
  • WordPress version: 6.3.1
  • First release: Dec 27, 2015
  • Latest release: Dec 27, 2015
  • Number of updates: 9
  • Update frequency: N/A
  • Top authors: kent_v (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /838 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼3.73ms] Passed 4 tests

Server-side resources used by Sky Seo
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1145.99 ▲3.76
Dashboard /wp-admin3.40 ▲0.1054.05 ▼3.85
Posts /wp-admin/edit.php3.52 ▲0.1649.12 ▲2.74
Add New Post /wp-admin/post-new.php5.55 ▼0.3476.86 ▼17.55
Media Library /wp-admin/upload.php3.33 ▲0.1041.42 ▲4.23

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Sky Seo
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.72 ▲0.161.77 ▼0.1443.25 ▼3.57
Dashboard /wp-admin2,191 ▲175.56 ▼0.0086.35 ▼17.0178.85 ▲32.69
Posts /wp-admin/edit.php2,108 ▲81.97 ▼0.0236.86 ▼2.9233.56 ▼5.37
Add New Post /wp-admin/post-new.php6,327 ▲4,80125.88 ▲2.80962.82 ▲284.5458.11 ▼1.34
Media Library /wp-admin/upload.php1,408 ▲84.21 ▼0.03112.04 ▲9.6477.80 ▲31.55

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Almost there! Just fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/sky-seo/framework/sky-settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/sky-seo/sky-seo.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sky-seo/framework/functions/sky-seo-post-type.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (http://i.imgur.com/gaCgGCf.png), #2 (http://i.imgur.com/16n5Csj.png)
Please take inspiration from this readme.txt

sky-seo/sky-seo.php 92% from 13 tests

"Sky Seo" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected606 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP4202114431
LESS11079
CSS10061
JavaScript29635

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity27.33
▷ Minimum class complexity18.00
▷ Maximum class complexity36.00
Average method complexity3.93
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27.41%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon-menu.png3.96KB1.29KB▼ 67.34%
assets/images/no-image.png2.10KB0.63KB▼ 69.93%