90% ashtabula

Code Review | Ashtabula

WordPress plugin Ashtabula scored90%from 54 tests.

About plugin

  • Plugin page: ashtabula
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 22, 2020
  • Latest release: Dec 18, 2022
  • Number of updates: 9
  • Update frequency: every 94.7 days
  • Top authors: mlchaves (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,128 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Server-side resources used by Ashtabula
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.03 ▼1.05
Dashboard /wp-admin3.31 ▲0.0043.66 ▼5.24
Posts /wp-admin/edit.php3.36 ▲0.0043.46 ▼3.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.91 ▼11.38
Media Library /wp-admin/upload.php3.23 ▲0.0033.64 ▼4.26

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Ashtabula
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7614.45 ▼0.265.85 ▲4.0142.69 ▲2.94
Dashboard /wp-admin2,195 ▲185.64 ▼0.0384.05 ▼4.6237.44 ▼5.14
Posts /wp-admin/edit.php2,100 ▲32.03 ▲0.0136.24 ▲0.3234.68 ▼1.41
Add New Post /wp-admin/post-new.php1,535 ▲918.10 ▼5.02599.04 ▼71.3571.34 ▲20.93
Media Library /wp-admin/upload.php1,403 ▲64.19 ▼0.0295.14 ▼9.5340.78 ▼5.28

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

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:
  • Screenshots: Please a description for screenshot #2 in ashtabula/assets to your readme.txt
The official readme.txt might help

ashtabula/ashtabula.php Passed 13 tests

This is the main PHP file of "Ashtabula" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
38 characters long description:
Allows Swiper.js to work in WordPress.

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
Good job! No executable or dangerous file extensions detected71 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS261138
PHP1112321
JavaScript211212

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.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
No PNG files were detected