89% pojo-builder-animation

Code Review | Pojo Builder Animation

WordPress plugin Pojo Builder Animation scored 89% from 54 tests.

About plugin

  • Plugin page: pojo-builder-anim...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.1
  • WordPress version: 6.3.1
  • First release: Sep 1, 2014
  • Latest release: Nov 8, 2022
  • Number of updates: 32
  • Update frequency: every 93.6 days
  • Top authors: KingYes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active / 21,231 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▲1.39ms] Passed 4 tests

A check of server-side resources used by Pojo Builder Animation
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.61 ▼3.03
Dashboard /wp-admin3.32 ▲0.0152.83 ▲3.65
Posts /wp-admin/edit.php3.37 ▲0.0152.17 ▲4.17
Add New Post /wp-admin/post-new.php5.90 ▲0.0199.29 ▲0.99
Media Library /wp-admin/upload.php3.24 ▲0.0136.91 ▲3.95

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

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

Browser metrics Passed 4 tests

Pojo Builder Animation: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.64 ▼0.691.74 ▼0.2241.16 ▼5.88
Dashboard /wp-admin2,203 ▲155.81 ▲0.91103.28 ▼6.2039.16 ▼1.59
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0339.43 ▼0.0938.00 ▲0.56
Add New Post /wp-admin/post-new.php1,533 ▼123.45 ▲2.46621.25 ▼18.1149.23 ▲0.17
Media Library /wp-admin/upload.php1,382 ▼34.20 ▲0.0398.62 ▲1.5742.61 ▼0.47

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 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 Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Widget Animation) image not found
The official readme.txt might help

pojo-builder-animation/pojo-builder-animation.php 92% from 13 tests

The main PHP file in "Pojo Builder Animation" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected5,754 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS11102,848
LESS3518102,750
PHP33540112
JavaScript212344

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity3.67
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes3100.00%
Methods14
▷ Static methods17.14%
▷ Public methods1392.86%
▷ Protected methods00.00%
▷ Private methods17.14%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.33MB with 0.20MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png335.31KB135.38KB▼ 59.62%