84% internal-site-seo

Code Review | Internal-Site SEO

WordPress plugin Internal-Site SEO scored84%from 54 tests.

About plugin

  • Plugin page: internal-site-seo
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Apr 7, 2014
  • Latest release: Apr 8, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: chang47 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,321 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.30MB] [CPU: ▼15.21ms] Passed 4 tests

An overview of server-side resources used by Internal-Site SEO
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▼0.0135.07 ▼7.77
Dashboard /wp-admin3.34 ▲0.0348.25 ▼1.43
Posts /wp-admin/edit.php3.39 ▲0.0350.41 ▲6.02
Add New Post /wp-admin/post-new.php4.63 ▼1.2645.11 ▼50.90
Media Library /wp-admin/upload.php3.26 ▲0.0335.74 ▼0.75
Internal Site SEO Settings /wp-admin/options-general.php?page=iss_jj-my-internal_site_configs3.2331.96

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
iss_jj_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Internal-Site SEO
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.25 ▼0.311.86 ▲0.2139.69 ▼4.57
Dashboard /wp-admin2,196 ▲165.51 ▼0.1789.12 ▼0.5836.80 ▼0.21
Posts /wp-admin/edit.php2,101 ▲12.04 ▲0.0640.56 ▲6.4535.77 ▲3.29
Add New Post /wp-admin/post-new.php1,531 ▲323.15 ▲0.02655.12 ▼58.2654.51 ▼0.18
Media Library /wp-admin/upload.php1,407 ▲44.21 ▼0.0196.00 ▼11.4146.75 ▼4.76
Internal Site SEO Settings /wp-admin/options-general.php?page=iss_jj-my-internal_site_configs8272.0324.9729.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • iss_jj_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/internal-site-seo/Internal-Site-SEO.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === internal-site-seo === )
The official readme.txt might help

internal-site-seo/Internal-Site-SEO.php 92% from 13 tests

"Internal-Site SEO" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("internal-site-seo.php" instead of "Internal-Site-SEO.php")

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
Success! There were no dangerous files found in this plugin165 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13043165

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected