90% mc-theme-basics

Code Review | MC Theme Basics

WordPress plugin MC Theme Basics scored90%from 54 tests.

About plugin

  • Plugin page: mc-theme-basics
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.5
  • WordPress version: 6.3.1
  • First release: Feb 27, 2017
  • Latest release: Feb 27, 2017
  • Number of updates: 2
  • Update frequency: every 6.5 days
  • Top authors: miguelcalderon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /436 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Server-side resources used by MC Theme Basics
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.10 ▼7.20
Dashboard /wp-admin3.32 ▲0.0148.69 ▼0.96
Posts /wp-admin/edit.php3.37 ▲0.0151.47 ▲4.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.10 ▼21.24
Media Library /wp-admin/upload.php3.24 ▲0.0134.03 ▲0.42

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for MC Theme Basics
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.63 ▼0.681.38 ▼0.4038.80 ▼5.82
Dashboard /wp-admin2,203 ▲125.83 ▼0.0795.85 ▼9.3038.75 ▼2.65
Posts /wp-admin/edit.php2,086 ▼32.05 ▲0.0038.47 ▲2.3634.67 ▲2.83
Add New Post /wp-admin/post-new.php1,514 ▼3017.60 ▼0.55685.09 ▲70.6452.64 ▼2.17
Media Library /wp-admin/upload.php1,388 ▲34.16 ▼0.0895.69 ▼30.7941.33 ▼10.22

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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
Please fix the following attributes:
  • Tags: No tags were detected
Please take inspiration from this readme.txt

mc-theme-basics/mc-theme-basics.php Passed 13 tests

Analyzing the main PHP file in "MC Theme Basics" version 1.0
91 characters long description:
Basic setup tasks for any Wordpress site: disable user enumeration, get rid of emojis, etc.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin39 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP182339

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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 functions133.33%
▷ Anonymous functions266.67%
Constants4
▷ Global constants4100.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 images were found in this plugin