90% rudimentary-information

Code Review | Rudimentary Information

WordPress plugin Rudimentary Information scored90%from 54 tests.

About plugin

  • Plugin page: rudimentary-infor...
  • Plugin version: 0.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.3-5.6.2
  • WordPress version: 6.3.1
  • First release: Nov 30, 2017
  • Latest release: Feb 24, 2021
  • Number of updates: 30
  • Update frequency: every 39.4 days
  • Top authors: benlumia007 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,339 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.37ms] Passed 4 tests

A check of server-side resources used by Rudimentary Information
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.36 ▼5.70
Dashboard /wp-admin3.34 ▼0.0044.82 ▼16.89
Posts /wp-admin/edit.php3.45 ▲0.1052.55 ▲6.73
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.38 ▼7.08
Media Library /wp-admin/upload.php3.26 ▲0.0433.05 ▲0.21

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 10 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_tag_widget
widget_theme_widget
widget_plugin_widget
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_download_widget
can_compress_scripts

Browser metrics Passed 4 tests

Rudimentary Information: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.26 ▼1.144.02 ▲1.7140.23 ▼5.08
Dashboard /wp-admin2,206 ▲215.88 ▲1.05105.60 ▼10.1036.51 ▼9.26
Posts /wp-admin/edit.php2,089 ▲32.01 ▼0.0439.65 ▲4.6134.64 ▼3.19
Add New Post /wp-admin/post-new.php1,376 ▼13816.49 ▼1.20561.98 ▼125.0948.48 ▼17.99
Media Library /wp-admin/upload.php1,391 ▼04.22 ▼0.0296.26 ▼3.9442.24 ▼3.88

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 10 options in the database
    • widget_theme_widget
    • db_upgraded
    • widget_tag_widget
    • widget_download_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_plugin_widget
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: plugins, api, themes

rudimentary-information/rudimentary-information.php Passed 13 tests

This is the main PHP file of "Rudimentary Information" version 0.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
98 characters long description:
Rudimentary Information currently displays themes information using the WordPress.org theme's API.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected789 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP9165763724
CSS113065

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity15.00
▷ Minimum class complexity5.00
▷ Maximum class complexity29.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods40
▷ Static methods820.00%
▷ Public methods3280.00%
▷ Protected methods00.00%
▷ Private methods820.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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin