90% dadevarzan-wp-exhibition

Code Review | Dadevarzan WordPress Exhibition

WordPress plugin Dadevarzan WordPress Exhibition scored90%from 54 tests.

About plugin

  • Plugin page: dadevarzan-wp-exh...
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-6.0.0
  • WordPress version: 6.3.1
  • First release: Feb 14, 2019
  • Latest release: May 31, 2022
  • Number of updates: 9
  • Update frequency: every 133.6 days
  • Top authors: dadevarzan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /935 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼3.90ms] Passed 4 tests

An overview of server-side resources used by Dadevarzan WordPress Exhibition
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1140.15 ▼0.02
Dashboard /wp-admin3.41 ▲0.0644.71 ▼12.27
Posts /wp-admin/edit.php3.51 ▲0.1544.23 ▼3.34
Add New Post /wp-admin/post-new.php6.09 ▲0.2085.23 ▲0.05
Media Library /wp-admin/upload.php3.32 ▲0.0937.55 ▲3.73

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Dadevarzan WordPress Exhibition: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲9914.47 ▲0.101.76 ▼0.0338.69 ▼7.48
Dashboard /wp-admin2,234 ▲465.85 ▲0.9796.54 ▼12.3840.08 ▼3.74
Posts /wp-admin/edit.php2,120 ▲312.02 ▼0.0232.82 ▼10.1334.64 ▼0.98
Add New Post /wp-admin/post-new.php1,571 ▲5223.23 ▼0.02601.81 ▼83.1465.99 ▲9.91
Media Library /wp-admin/upload.php1,416 ▲314.22 ▼0.0598.25 ▼11.6642.87 ▼2.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

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
5 plugin tags: wp, exhibition, wordpress, dadevarzan, dadehvarzan

dadevarzan-wp-exhibition/dadevarzan-wp-exhibition.php Passed 13 tests

The main file in "Dadevarzan WordPress Exhibition" v. 1.2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
34 characters long description:
exhibition post type for wordpress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected333 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23717273
PO File1232460

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods7100.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 files were detected