83% aisee-seo

Code Review | AISee SEO

WordPress plugin AISee SEO scored83%from 54 tests.

About plugin

  • Plugin page: aisee-seo
  • Plugin version: 2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.4-5.1
  • WordPress version: 6.3.1
  • First release: Apr 9, 2019
  • Latest release: Apr 16, 2019
  • Number of updates: 7
  • Update frequency: every 1.0 days
  • Top authors: varun21 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /937 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.13MB] [CPU: ▼4.11ms] Passed 4 tests

A check of server-side resources used by AISee SEO
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1341.10 ▼1.87
Dashboard /wp-admin3.43 ▲0.1352.61 ▲0.93
Posts /wp-admin/edit.php3.55 ▲0.1952.20 ▼1.53
Add New Post /wp-admin/post-new.php6.02 ▲0.1386.51 ▼9.86
Media Library /wp-admin/upload.php3.35 ▲0.1333.31 ▼3.16

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for AISee SEO
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.32 ▼1.041.80 ▼0.1744.88 ▲1.28
Dashboard /wp-admin2,206 ▲215.84 ▲0.9599.86 ▼17.1739.49 ▼4.32
Posts /wp-admin/edit.php2,094 ▲52.05 ▲0.0734.14 ▼2.2732.52 ▼2.56
Add New Post /wp-admin/post-new.php6,349 ▲4,83026.01 ▲2.90886.20 ▲200.4868.59 ▲8.99
Media Library /wp-admin/upload.php1,390 ▲24.16 ▼0.0294.23 ▼19.0640.70 ▼6.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • 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 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/aisee-seo/aisee.php:35

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

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (screenshot-4.png) image missing
You can take inspiration from this readme.txt

aisee-seo/aisee.php 85% from 13 tests

"AISee SEO" version 2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("aisee-seo.php" instead of "aisee.php")

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
Everything looks great! No dangerous files found in this plugin784 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP24417607
SVG300123
CSS112554

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity82.00
▷ Minimum class complexity82.00
▷ Maximum class complexity82.00
Average method complexity3.52
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods26
▷ Static methods13.85%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png23.94KB10.65KB▼ 55.51%
screenshot-2.png110.71KB53.70KB▼ 51.50%
screenshot-1.png26.67KB11.08KB▼ 58.46%