84% so-page-builder-animate

Code Review | SO Page Builder Animate

WordPress plugin SO Page Builder Animate scored84%from 54 tests.

About plugin

  • Plugin page: so-page-builder-a...
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.7.1
  • WordPress version: 6.3.1
  • First release: Nov 6, 2015
  • Latest release: Jan 24, 2017
  • Number of updates: 16
  • Update frequency: every 27.9 days
  • Top authors: dunhakdis (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

7,000+ active /52,257 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.10ms] Passed 4 tests

This is a short check of server-side resources used by SO Page Builder Animate
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0437.96 ▲0.63
Dashboard /wp-admin3.34 ▲0.0347.79 ▲4.04
Posts /wp-admin/edit.php3.39 ▲0.0344.40 ▲0.93
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.00 ▼12.44
Media Library /wp-admin/upload.php3.26 ▲0.0332.14 ▼1.52

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for SO Page Builder Animate
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,875 ▲12913.45 ▼0.909.62 ▲8.0243.75 ▲5.78
Dashboard /wp-admin2,192 ▲145.50 ▼0.22100.17 ▼6.6044.03 ▲5.36
Posts /wp-admin/edit.php2,100 ▲32.01 ▼0.0135.80 ▲1.4132.29 ▼3.70
Add New Post /wp-admin/post-new.php1,531 ▲223.08 ▲0.21663.91 ▲22.8065.01 ▲13.13
Media Library /wp-admin/upload.php1,397 ▼04.21 ▲0.0296.68 ▼2.9345.53 ▲3.46

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 did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

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 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/so-page-builder-animate/so-page-builder-animate.php:14

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 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (The 'Animate' settings screenshot), #2 (The ’Animate’ settings tab when opened)
The official readme.txt is a good inspiration

so-page-builder-animate/so-page-builder-animate.php 92% from 13 tests

The principal PHP file in "SO Page Builder Animate" v. 0.5 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 249 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected194 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13941192
CSS1051
JavaScript1011

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin