90% extra-options-for-twenty-twenty

Code Review | Extra Options For The Twenty Twenty Theme

WordPress plugin Extra Options For The Twenty Twenty Theme scored90%from 54 tests.

About plugin

  • Plugin page: extra-options-for...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.3.1
  • WordPress version: 6.3.1
  • First release: Dec 13, 2019
  • Latest release: Dec 13, 2019
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: acosmin (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /2,673 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.44ms] Passed 4 tests

Server-side resources used by Extra Options For The Twenty Twenty Theme
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.33 ▲2.59
Dashboard /wp-admin3.32 ▲0.0242.64 ▼6.06
Posts /wp-admin/edit.php3.37 ▲0.0244.39 ▼6.97
Add New Post /wp-admin/post-new.php5.85 ▼0.0488.08 ▼2.02
Media Library /wp-admin/upload.php3.24 ▲0.0132.94 ▲1.29
2020 Extras /wp-admin/themes.php?page=tteo2020-extra-options3.2129.41

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Extra Options For The Twenty Twenty Theme
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.26 ▼1.121.74 ▼0.0143.35 ▼3.43
Dashboard /wp-admin2,210 ▲225.86 ▼0.0397.94 ▼17.3937.57 ▼4.73
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0039.71 ▲5.1835.47 ▼0.27
Add New Post /wp-admin/post-new.php1,684 ▲16522.68 ▼0.73623.79 ▼30.5257.05 ▲1.78
Media Library /wp-admin/upload.php1,386 ▼24.25 ▲0.12101.07 ▲3.2143.22 ▲0.94
2020 Extras /wp-admin/themes.php?page=tteo2020-extra-options8122.1721.7229.73

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • 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
Good news, no errors were detected

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
No tags were found

extra-options-for-twenty-twenty/extra-options-for-twenty-twenty.php 92% from 13 tests

"Extra Options For The Twenty Twenty Theme" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 227 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin595 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP1104170459
JavaScript3271133
CSS1003

PHP code Passed 2 tests

This is a very shot review of 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.32
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity3.00
▷ Minimum method complexity3.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions31
▷ Named functions2477.42%
▷ Anonymous functions722.58%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin