90% dev-theme

Code Review | Dev Theme

WordPress plugin Dev Theme scored90%from 54 tests.

About plugin

  • Plugin page: dev-theme
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Feb 12, 2020
  • Latest release: May 10, 2023
  • Number of updates: 39
  • Update frequency: every 30.3 days
  • Top authors: bashari (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /976 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼1.53ms] Passed 4 tests

A check of server-side resources used by Dev Theme
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.59 ▼0.87
Dashboard /wp-admin3.38 ▲0.0749.25 ▼0.58
Posts /wp-admin/edit.php3.49 ▲0.1351.19 ▲3.56
Add New Post /wp-admin/post-new.php5.96 ▲0.0793.31 ▼7.96
Media Library /wp-admin/upload.php3.30 ▲0.0739.78 ▲3.31

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

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

Browser metrics Passed 4 tests

Dev Theme: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.34 ▼0.192.02 ▲0.3840.82 ▼5.42
Dashboard /wp-admin2,207 ▲275.54 ▼0.1386.86 ▼11.0040.52 ▲1.34
Posts /wp-admin/edit.php2,112 ▲92.02 ▲0.0139.55 ▲3.4234.43 ▲1.84
Add New Post /wp-admin/post-new.php1,536 ▲823.16 ▲1.95678.42 ▼7.2573.89 ▲15.79
Media Library /wp-admin/upload.php1,415 ▲124.20 ▼0.0397.61 ▼7.4344.77 ▲2.12

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: development, dev, staging, stage, theme

dev-theme/dev-theme.php Passed 13 tests

The entry point to "Dev Theme" version 1.2.1 is a PHP file that has certain tags in its header comment area
136 characters long description:
This plugin can duplicate your theme to a special development theme that you can edit and use, while real users using your current theme

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 detected269 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17233269

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity58.00
▷ Minimum class complexity58.00
▷ Maximum class complexity58.00
Average method complexity3.04
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods1450.00%
▷ Protected methods1450.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected