90% dmimag-faqs

Code Review | DmiMag FAQs

WordPress plugin DmiMag FAQs scored 90% from 54 tests.

About plugin

  • Plugin page: dmimag-faqs
  • Plugin version: 1.2.5
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 16, 2023
  • Latest release: Jul 23, 2023
  • Number of updates: 28
  • Update frequency: every 4.6 days
  • Top authors: dmimag (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 414 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼0.18ms] Passed 4 tests

Analyzing server-side resources used by DmiMag FAQs
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0643.03 ▲1.42
Dashboard /wp-admin3.41 ▲0.1151.88 ▲2.84
Posts /wp-admin/edit.php3.49 ▲0.1454.96 ▲1.98
Add New Post /wp-admin/post-new.php5.95 ▲0.0794.38 ▼5.93
Media Library /wp-admin/upload.php3.30 ▲0.0734.38 ▲1.79
Add New /wp-admin/post-new.php?post_type=dmimag-faq3.3553.36
All FAQs /wp-admin/edit.php?post_type=dmimag-faq3.3739.60

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for DmiMag FAQs
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,070 ▲33516.96 ▲2.604.73 ▲2.9838.32 ▼6.59
Dashboard /wp-admin2,390 ▲1997.18 ▲2.28132.47 ▲29.8937.05 ▼3.31
Posts /wp-admin/edit.php2,445 ▲3564.60 ▲2.5667.20 ▲31.6935.58 ▲1.15
Add New Post /wp-admin/post-new.php1,553 ▲1118.42 ▲0.02587.00 ▼48.8033.96 ▼20.55
Media Library /wp-admin/upload.php1,585 ▲1974.96 ▲0.7692.48 ▼9.4641.49 ▼2.86
Add New /wp-admin/post-new.php?post_type=dmimag-faq2,2087.37149.8859.14
All FAQs /wp-admin/edit.php?post_type=dmimag-faq1,4174.5953.5727.62

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
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
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
9 plugin tags: faq plugin, guide, faqs, faq, accordion...

dmimag-faqs/dmimag-faqs.php Passed 13 tests

The primary PHP file in "DmiMag FAQs" version 1.2.5 is used by WordPress to initiate all plugin functionality
46 characters long description:
FAQs Plugin. FAQ. Accordion Style, Guide Style

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
Good job! No executable or dangerous file extensions detected1,088 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP12208725643
CSS29430352
JavaScript226090
SVG3003

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity11.11
▷ Minimum class complexity1.00
▷ Maximum class complexity36.00
Average method complexity3.12
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods43
▷ Static methods24.65%
▷ Public methods3683.72%
▷ Protected methods00.00%
▷ Private methods716.28%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
PNG images were not found in this plugin