83% accelerate-patterns

Code Review | Accelerate Patterns

WordPress plugin Accelerate Patterns scored83%from 54 tests.

About plugin

  • Plugin page: accelerate-patterns
  • Plugin version: 1.0.1
  • PHP compatiblity: 6.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 29, 2022
  • Latest release: May 27, 2022
  • Number of updates: 19
  • Update frequency: every 1.6 days
  • Top authors: ampwptools (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /299 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.13MB] [CPU: ▲2.98ms] Passed 4 tests

Server-side resources used by Accelerate Patterns
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1444.95 ▲1.74
Dashboard /wp-admin3.44 ▲0.1353.11 ▼0.51
Posts /wp-admin/edit.php3.49 ▲0.1357.06 ▲7.76
Add New Post /wp-admin/post-new.php6.13 ▲0.2590.51 ▲2.93
Media Library /wp-admin/upload.php3.36 ▲0.1341.79 ▲8.71
Add New Pattern /wp-admin/post-new.php?post_type=accpattern6.1283.04
All Patterns /wp-admin/edit.php?post_type=accpattern3.4136.80
Pattern Categories /wp-admin/edit-tags.php?taxonomy=mypatterns&post_type=accpattern3.3537.96

Server storage [IO: ▲0.03MB] [DB: ▲0.62MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options
accelerate-patterns_current_version
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
accelerate-patterns_initial_version

Browser metrics Passed 4 tests

An overview of browser requirements for Accelerate Patterns
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,869 ▲12313.33 ▼1.022.13 ▲0.2648.69 ▲3.07
Dashboard /wp-admin2,247 ▲615.80 ▲0.85103.12 ▼17.5441.24 ▼0.44
Posts /wp-admin/edit.php2,130 ▲382.02 ▲0.0337.83 ▲1.1832.51 ▲0.60
Add New Post /wp-admin/post-new.php1,550 ▲1617.68 ▼5.38677.18 ▲37.0354.40 ▼5.79
Media Library /wp-admin/upload.php1,429 ▲414.13 ▼0.05100.70 ▼7.1846.18 ▼0.60
Add New Pattern /wp-admin/post-new.php?post_type=accpattern6,16325.78872.6835.55
All Patterns /wp-admin/edit.php?post_type=accpattern1,1081.9632.1730.29
Pattern Categories /wp-admin/edit-tags.php?taxonomy=mypatterns&post_type=accpattern1,3062.1326.5030.97

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • accelerate-patterns_current_version
    • accelerate-patterns_initial_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/post-new.php?post_type=accpattern
    • > Network (severe)
    wp-content/plugins/accelerate-patterns/script/acceleratePatternsStyle.css?ver=1697011175 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/post-new.php?post_type=accpattern
    • > Network (severe)
    wp-content/plugins/accelerate-patterns/script/acceleratePatternsClass.js?ver=1697011175 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=accpattern
    • > Network (severe)
    wp-content/plugins/accelerate-patterns/script/acceleratePatternsStyle.css?ver=1697011178 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=accpattern
    • > Network (severe)
    wp-content/plugins/accelerate-patterns/script/acceleratePatternsClass.js?ver=1697011178 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit-tags.php?taxonomy=mypatterns&post_type=accpattern
    • > Network (severe)
    wp-content/plugins/accelerate-patterns/script/acceleratePatternsStyle.css?ver=1697011180 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit-tags.php?taxonomy=mypatterns&post_type=accpattern
    • > Network (severe)
    wp-content/plugins/accelerate-patterns/script/acceleratePatternsClass.js?ver=1697011180 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
Attributes that need to be fixed:
  • Tested up to: Invalid version format
  • Requires at least: Invalid version format
The official readme.txt is a good inspiration

accelerate-patterns/functions.php 92% from 13 tests

"Accelerate Patterns" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("accelerate-patterns.php" instead of "functions.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected642 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP337266492
JavaScript118106
CSS21844

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity63.00
▷ Minimum class complexity63.00
▷ Maximum class complexity63.00
Average method complexity3.21
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin