84% dirigible-seo

Code Review | Dirigible SEO

WordPress plugin Dirigible SEO scored84%from 54 tests.

About plugin

  • Plugin page: dirigible-seo
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.5
  • WordPress version: 6.3.1
  • First release: May 5, 2020
  • Latest release: Aug 21, 2020
  • Number of updates: 11
  • Update frequency: every 10.5 days
  • Top authors: dirigible (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /625 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.05MB] [CPU: ▼9.00ms] Passed 4 tests

Analyzing server-side resources used by Dirigible SEO
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.95 ▼0.5118.65 ▼24.58
Dashboard /wp-admin3.40 ▲0.1045.94 ▼0.65
Posts /wp-admin/edit.php3.51 ▲0.1650.79 ▲2.87
Add New Post /wp-admin/post-new.php6.00 ▲0.1186.76 ▼11.43
Media Library /wp-admin/upload.php3.32 ▲0.0934.71 ▲0.68
SEO /wp-admin/admin.php?page=dirigibleSEO3.2931.99
Dirigible /wp-admin/admin.php?page=dirigible/tools3.2930.55

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Dirigible SEO
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,510 ▼24714.81 ▲0.440.49 ▼1.5017.58 ▼29.38
Dashboard /wp-admin2,257 ▲754.91 ▼1.00102.06 ▼0.3338.79 ▼1.29
Posts /wp-admin/edit.php2,137 ▲482.04 ▲0.0141.37 ▼0.2633.72 ▼1.40
Add New Post /wp-admin/post-new.php1,543 ▲2917.76 ▲0.31645.79 ▼3.2762.11 ▼16.63
Media Library /wp-admin/upload.php1,439 ▲544.30 ▲0.19104.89 ▼0.8143.45 ▲0.24
SEO /wp-admin/admin.php?page=dirigibleSEO8152.0826.4428.12
Dirigible /wp-admin/admin.php?page=dirigible/tools8082.0825.9423.71

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

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
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 add_action() in wp-content/plugins/dirigible-seo/src/ajax.php:7

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 Passed 29 tests

readme.txt Passed 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
7 plugin tags: meta, seo, meta title, meta description, description...

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

The principal PHP file in "Dirigible SEO" v. 1.1.3 is loaded by WordPress automatically on each request
52 characters long description:
Dead simple SEO Control for Wordpress. Requires ACF.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin774 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP35524542
Sass16094
CSS14472
JavaScript210166

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity40.00
▷ Minimum class complexity40.00
▷ Maximum class complexity40.00
Average method complexity3.44
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected