84% pixobe-coloring-book

Code Review | Pixobe Coloring Book

WordPress plugin Pixobe Coloring Book scored84%from 54 tests.

About plugin

  • Plugin page: pixobe-coloring-book
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 13, 2020
  • Latest release: May 16, 2023
  • Number of updates: 36
  • Update frequency: every 26.3 days
  • Top authors: pixobe (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

100+ active /2,501 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.14MB] [CPU: ▼9.67ms] Passed 4 tests

This is a short check of server-side resources used by Pixobe Coloring Book
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▼0.6027.59 ▼19.10
Dashboard /wp-admin3.32 ▲0.0248.78 ▼1.81
Posts /wp-admin/edit.php3.37 ▲0.0247.42 ▼1.19
Add New Post /wp-admin/post-new.php5.90 ▲0.0289.10 ▼16.57
Media Library /wp-admin/upload.php3.25 ▲0.0238.32 ▲3.19

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
pixobe-coloring-book
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Pixobe Coloring Book
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲11013.63 ▼0.757.58 ▲5.6942.74 ▲1.02
Dashboard /wp-admin2,206 ▲175.90 ▲0.96101.92 ▼6.8139.11 ▼2.30
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0340.24 ▼0.7634.12 ▼2.37
Add New Post /wp-admin/post-new.php1,533 ▼923.22 ▲5.00690.56 ▲75.0158.57 ▲9.42
Media Library /wp-admin/upload.php1,388 ▼34.29 ▲0.18113.55 ▲6.0146.26 ▲6.35

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • pixobe-coloring-book
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/pixobe-coloring-book/pixobe-coloring-book.php:80

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt is a good inspiration

pixobe-coloring-book/pixobe-coloring-book.php Passed 13 tests

The main PHP file in "Pixobe Coloring Book" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
55 characters long description:
Add coloring book application to your wordpress easily.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected96 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1278081
JavaScript104315

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin