84% extensions-for-all-in-one-seo-pack

Code Review | Extensions For All In One SEO Pack

WordPress plugin Extensions For All In One SEO Pack scored84%from 54 tests.

About plugin

  • Plugin page: extensions-for-al...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-5.2.3
  • WordPress version: 6.3.1
  • First release: Oct 3, 2019
  • Latest release: Oct 5, 2019
  • Number of updates: 9
  • Update frequency: every 0.2 days
  • Top authors: onetarek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,487 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼10.78ms] Passed 4 tests

An overview of server-side resources used by Extensions For All In One SEO Pack
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.67 ▼0.65
Dashboard /wp-admin3.34 ▼0.0047.20 ▼12.67
Posts /wp-admin/edit.php3.39 ▲0.0343.28 ▼9.15
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.80 ▼20.64
Media Library /wp-admin/upload.php3.26 ▲0.0334.17 ▲1.25

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Extensions For All In One SEO Pack
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲9013.21 ▼1.012.04 ▲0.2143.81 ▲1.73
Dashboard /wp-admin2,220 ▲324.88 ▼0.98108.73 ▲5.7239.20 ▼4.22
Posts /wp-admin/edit.php2,099 ▲102.06 ▲0.0435.88 ▼4.7434.30 ▼1.88
Add New Post /wp-admin/post-new.php1,554 ▲3218.36 ▼4.55622.16 ▲47.1858.97 ▲10.32
Media Library /wp-admin/upload.php1,396 ▲54.20 ▼0.0897.27 ▲0.4742.49 ▲0.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/extensions-for-all-in-one-seo-pack/admin/check-main-plugin-exists.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'All_in_One_SEO_Pack_Module' not found in wp-content/plugins/extensions-for-all-in-one-seo-pack/modules/useful_links/aioseopext_useful_links.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'All_in_One_SEO_Pack_Module' not found in wp-content/plugins/extensions-for-all-in-one-seo-pack/modules/link_counter/aioseopext_link_counter.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/extensions-for-all-in-one-seo-pack/extensions-for-all-in-one-seo-pack.php:48

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: seo, extensions, addons, seo tools links, seo link counter...

extensions-for-all-in-one-seo-pack/extensions-for-all-in-one-seo-pack.php 85% from 13 tests

The main PHP file in "Extensions For All In One SEO Pack" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/i18n/")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,231 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP93235371,052
CSS17391
JavaScript121272
SVG3009
Markdown1807

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity19.43
▷ Minimum class complexity3.00
▷ Maximum class complexity31.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods62
▷ Static methods00.00%
▷ Public methods4572.58%
▷ Protected methods00.00%
▷ Private methods1727.42%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants956.25%
▷ Class constants743.75%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
modules/link_counter/images/link-counter.png8.99KB3.82KB▼ 57.56%
modules/useful_links/images/useful-links.png13.85KB5.93KB▼ 57.19%