84% awesome-capital-letter

Code Review | Awesome Capital Letter

WordPress plugin Awesome Capital Letter scored84%from 54 tests.

About plugin

  • Plugin page: awesome-capital-l...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Jan 6, 2015
  • Latest release: Jan 6, 2015
  • Number of updates: 6
  • Update frequency: every 1.2 days
  • Top authors: rkpolin (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,094 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.63ms] Passed 4 tests

A check of server-side resources used by Awesome Capital Letter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0435.83 ▼7.77
Dashboard /wp-admin3.36 ▲0.0650.06 ▼12.74
Posts /wp-admin/edit.php3.41 ▲0.0548.88 ▲1.11
Add New Post /wp-admin/post-new.php5.96 ▲0.0796.37 ▼6.24
Media Library /wp-admin/upload.php3.28 ▲0.0539.42 ▲0.24
Capital Letter Settings /wp-admin/options-general.php?page=rkpcl-settings3.2532.21

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Awesome Capital Letter
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,937 ▲19114.21 ▼0.545.71 ▲3.7635.93 ▼6.98
Dashboard /wp-admin2,229 ▲585.10 ▲0.10110.98 ▼4.5942.94 ▼4.89
Posts /wp-admin/edit.php2,114 ▲222.32 ▲0.3244.43 ▲6.9036.83 ▲3.58
Add New Post /wp-admin/post-new.php1,376 ▼13716.55 ▼0.97543.77 ▼155.2727.86 ▼26.73
Media Library /wp-admin/upload.php1,411 ▲234.39 ▲0.1997.82 ▼18.8443.22 ▼4.90
Capital Letter Settings /wp-admin/options-general.php?page=rkpcl-settings1,1542.5240.2627.81

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/awesome-capital-letter/plugins-main.php:32

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #3 (/assets/screenshot-3.png), #4 (/assets/thumb.png)
You can look at the official readme.txt

awesome-capital-letter/plugins-main.php 92% from 13 tests

The main PHP script in "Awesome Capital Letter" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("awesome-capital-letter.php" instead of "plugins-main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin283 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP16236234
JavaScript31944
CSS1005

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin