90% seo-engine

Code Review | SEO Engine

WordPress plugin SEO Engine scored90%from 54 tests.

About plugin

  • Plugin page: seo-engine
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 2, 2018
  • Latest release: Jan 2, 2018
  • Number of updates: 6
  • Update frequency: every 4.0 days
  • Top authors: themeegg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,776 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼13.43ms] Passed 4 tests

An overview of server-side resources used by SEO Engine
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.79 ▼6.05
Dashboard /wp-admin3.32 ▼0.0251.70 ▼19.01
Posts /wp-admin/edit.php3.37 ▲0.0248.11 ▼8.77
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.96 ▼19.89
Media Library /wp-admin/upload.php3.24 ▲0.0241.72 ▲3.92

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by SEO Engine
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.16 ▼0.121.66 ▼0.0045.74 ▲0.83
Dashboard /wp-admin2,195 ▲215.65 ▲0.05103.52 ▼5.5287.68 ▲39.83
Posts /wp-admin/edit.php2,121 ▲182.00 ▼0.0341.32 ▼1.9139.11 ▲1.78
Add New Post /wp-admin/post-new.php1,432 ▼10417.88 ▼0.28714.52 ▲9.8749.81 ▼32.58
Media Library /wp-admin/upload.php1,409 ▲124.14 ▼0.08122.74 ▼11.2184.43 ▲27.16

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
The official readme.txt is a good inspiration

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

The principal PHP file in "SEO Engine" v. 1.0.0 is loaded by WordPress automatically on each request
140 characters long description:
Automatically adds alt and title attributes to all your images. Improves traffic from search results and makes them W3C/xHTML valid as well.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,033 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP5178233893
JavaScript2155140

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity45.67
▷ Minimum class complexity8.00
▷ Maximum class complexity118.00
Average method complexity4.27
▷ Minimum method complexity1.00
▷ Maximum method complexity82.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods41
▷ Static methods12.44%
▷ Public methods3585.37%
▷ Protected methods00.00%
▷ Private methods614.63%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/seosmart125.png16.56KB6.04KB▼ 63.51%
assets/images/mwp250_2.png22.54KB21.97KB▼ 2.52%
assets/images/logo.png2.66KB1.51KB▼ 43.40%
assets/images/icon.png1.50KB0.76KB▼ 49.22%
assets/images/arrows.png0.48KB0.24KB▼ 50.81%