90% dummynator

Code Review | Dummynator

WordPress plugin Dummynator scored90%from 54 tests.

About plugin

  • Plugin page: dummynator
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.4
  • WordPress version: 6.3.1
  • First release: Apr 30, 2018
  • Latest release: Jun 30, 2018
  • Number of updates: 4
  • Update frequency: every 15.3 days
  • Top authors: AjitBohra (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,311 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.32ms] Passed 4 tests

An overview of server-side resources used by Dummynator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.69 ▼1.45
Dashboard /wp-admin3.32 ▲0.0251.43 ▼1.39
Posts /wp-admin/edit.php3.37 ▲0.0247.83 ▲0.80
Add New Post /wp-admin/post-new.php5.91 ▲0.02104.54 ▲4.07
Media Library /wp-admin/upload.php3.25 ▲0.0239.70 ▲0.75

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Dummynator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.14 ▲0.021.62 ▼0.1443.69 ▼1.51
Dashboard /wp-admin2,198 ▲185.58 ▼0.0795.34 ▼6.0444.20 ▲0.55
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0235.97 ▼3.4032.70 ▼1.41
Add New Post /wp-admin/post-new.php1,543 ▲1723.64 ▲0.13638.82 ▼50.4053.01 ▼2.23
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.03101.68 ▼9.4044.70 ▼2.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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
3 plugin tags: lipsum, dummy, gutenberg

dummynator/dummynator.php Passed 13 tests

"Dummynator" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
28 characters long description:
Quickly insert dummy content

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin83 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP11810880
CSS2002
JavaScript1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods562.50%
▷ Protected methods00.00%
▷ Private methods337.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
No PNG images were found in this plugin