84% demomentsomtres-plugins

Code Review | Plugin Info

WordPress plugin Plugin Info scored84%from 54 tests.

About plugin

  • Plugin page: demomentsomtres-p...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.8.1
  • WordPress version: 6.3.1
  • First release: Nov 17, 2013
  • Latest release: Sep 7, 2017
  • Number of updates: 7
  • Update frequency: every 198.6 days
  • Top authors: marcqueralt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,109 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

A check of server-side resources used by Plugin Info
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0841.64 ▼2.21
Dashboard /wp-admin3.38 ▲0.0452.77 ▼14.88
Posts /wp-admin/edit.php3.43 ▲0.0846.11 ▼8.19
Add New Post /wp-admin/post-new.php5.96 ▲0.0891.99 ▲4.33
Media Library /wp-admin/upload.php3.30 ▲0.0839.64 ▲5.75
Status /wp-admin/edit-tags.php?taxonomy=dms3-plugin-status&post_type=dms3-wp-plugin3.3035.71
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=dms3-wp-plugin3.3037.79
All of Plugins /wp-admin/edit.php?post_type=dms3-wp-plugin3.3537.08
Add New /wp-admin/post-new.php?post_type=dms3-wp-plugin3.4551.83

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Plugin Info: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲11713.33 ▼1.051.93 ▲0.1938.91 ▼0.65
Dashboard /wp-admin2,244 ▲564.92 ▲0.03104.58 ▼10.4841.96 ▼0.27
Posts /wp-admin/edit.php2,121 ▲322.04 ▼0.0035.55 ▼11.8136.06 ▼1.00
Add New Post /wp-admin/post-new.php1,563 ▲4423.38 ▲0.13617.17 ▼14.8166.98 ▲14.44
Media Library /wp-admin/upload.php1,417 ▲324.19 ▼0.02100.25 ▲0.3244.24 ▼2.12
Status /wp-admin/edit-tags.php?taxonomy=dms3-plugin-status&post_type=dms3-wp-plugin1,2692.2626.9331.76
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=dms3-wp-plugin1,3422.1427.8031.31
All of Plugins /wp-admin/edit.php?post_type=dms3-wp-plugin1,1551.9333.3630.60
Add New /wp-admin/post-new.php?post_type=dms3-wp-plugin2,9668.05188.5473.53

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/demomentsomtres-plugins/demomentsomtres-plugins.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: info, developer, plugin info, plugin info complement, meta...

demomentsomtres-plugins/demomentsomtres-plugins.php Passed 13 tests

This is the main PHP file of "Plugin Info" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
86 characters long description:
Provides a post type specific for wordpress plugins and integrates it with plugin info

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
Everything looks great! No dangerous files found in this plugin224 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11119224

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.71
▷ 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 methods00.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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin