10% development-theme

Code Review | Development Theme

WordPress plugin Development Theme scored10%from 54 tests.

About plugin

  • Plugin page: development-theme
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8.1
  • WordPress version: 6.3.1
  • First release: Nov 13, 2012
  • Latest release: Mar 9, 2014
  • Number of updates: 15
  • Update frequency: every 32.2 days
  • Top authors: arriba (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

60+ active /4,622 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Parse error in wp-content/plugins/development-theme/development_theme.php+160
    syntax error, unexpected '}', expecting end of file

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.04ms] Passed 4 tests

Analyzing server-side resources used by Development Theme
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.48 ▼2.06
Dashboard /wp-admin3.31 ▼0.0447.92 ▼18.26
Posts /wp-admin/edit.php3.36 ▲0.0045.88 ▼4.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.79 ▼7.14
Media Library /wp-admin/upload.php3.23 ▲0.0039.21 ▲3.54

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Development Theme: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6414.17 ▼0.352.02 ▲0.3344.38 ▼6.55
Dashboard /wp-admin2,195 ▲155.61 ▼0.1598.06 ▲1.4041.57 ▼4.37
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0737.08 ▲1.9233.13 ▼6.42
Add New Post /wp-admin/post-new.php1,526 ▼223.03 ▼0.04634.47 ▼31.3251.84 ▼2.33
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.0198.56 ▼0.7543.06 ▲1.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Parse error
      syntax error, unexpected '}', expecting end of file in wp-content/plugins/development-theme/development_theme.php on line 160

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Version 0.2 for Options plugin page under Appearance -> Development Themes Options.), #2 (Version 0.1 preview (old).)
  • Donate link: Invalid URI found ("rgdesign.org")
The official readme.txt is a good inspiration

development-theme/development_theme.php 92% from 13 tests

"Development Theme" version 0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("development-theme.php" instead of "development_theme.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected136 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15545136

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png13.42KB6.98KB▼ 48.03%
screenshot-1.png57.48KB20.70KB▼ 63.99%