94% custom-dolly

Code Review | Custom Dolly

WordPress plugin Custom Dolly scored 94% from 54 tests.

About plugin

  • Plugin page: custom-dolly
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.3
  • WordPress version: 5.8.1
  • First release: Dec 29, 2019
  • Latest release: Dec 29, 2019
  • Number of updates: 11
  • Update frequency: every 0.4 days
  • Top authors: chrisdann (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 283 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Custom Dolly
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0340.81 ▲1.65
Dashboard /wp-admin3.09 ▲0.0352.83 ▼3.59
Posts /wp-admin/edit.php3.17 ▲0.0652.80 ▲8.08
Add New Post /wp-admin/post-new.php5.44 ▲0.01102.15 ▼570.56
Media Library /wp-admin/upload.php3.03 ▲0.0352.63 ▲19.91
Custom Dolly /wp-admin/themes.php?page=custom-dolly3.0043.94

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Custom Dolly: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,715 ▲11915.90 ▲0.2612.27 ▲2.1349.12 ▼7.35
Dashboard /wp-admin2,980 ▲465.89 ▼0.03180.23 ▲19.19128.84 ▲7.65
Posts /wp-admin/edit.php2,754 ▲152.72 ▼0.1273.79 ▲1.67110.59 ▲19.51
Add New Post /wp-admin/post-new.php1,692 ▲7718.43 ▼2.94511.42 ▲169.75113.53 ▲2.42
Media Library /wp-admin/upload.php1,823 ▲165.03 ▲0.03175.76 ▲15.13152.35 ▲31.67
Custom Dolly /wp-admin/themes.php?page=custom-dolly1,0462.0968.4495.95

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-dolly/custom-dolly.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% 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:
  • Plugin Name: You should set the name of your plugin on the first line ( === custom-dolly === )
The official readme.txt is a good inspiration

custom-dolly/custom-dolly.php Passed 13 tests

"Custom Dolly" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
67 characters long description:
Hello Dolly but edit/save your own lyrics from the WordPress admin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin100 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12129100

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 are no PNG files in this plugin