94% css-wapuu-shortcord

Code Review | css-wapuu-shortcode

WordPress plugin css-wapuu-shortcode scored 94% from 54 tests.

About plugin

  • Plugin page: css-wapuu-shortcord
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.3.1
  • WordPress version: 5.9.2
  • First release: Aug 9, 2015
  • Latest release: Sep 20, 2015
  • Number of updates: 24
  • Update frequency: every 1.9 days
  • Top authors: mismith227 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,041 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

Analyzing server-side resources used by css-wapuu-shortcode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0259.13 ▲0.71
Dashboard /wp-admin3.42 ▲0.0135.74 ▲1.85
Posts /wp-admin/edit.php3.65 ▲0.0141.97 ▲4.86
Add New Post /wp-admin/post-new.php6.89 ▼0.08103.71 ▼1,214.51
Media Library /wp-admin/upload.php3.30 ▲0.0123.88 ▼0.12

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for css-wapuu-shortcode
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲2915.97 ▲0.415.95 ▼0.742.72 ▼0.05
Dashboard /wp-admin2,878 ▲206.26 ▲0.13132.09 ▼4.53188.47 ▲0.87
Posts /wp-admin/edit.php2,691 ▲33.24 ▲0.0264.31 ▲1.93142.08 ▲1.37
Add New Post /wp-admin/post-new.php1,661 ▼5016.40 ▼4.34396.86 ▼84.04177.16 ▲15.03
Media Library /wp-admin/upload.php1,698 ▼05.52 ▲0.05142.37 ▼12.41189.63 ▼3.42

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/css-wapuu-shortcord/css-wapuu-shortcord.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
3 plugin tags: csswapuu, wapuu, shortcode

css-wapuu-shortcord/css-wapuu-shortcord.php Passed 13 tests

The principal PHP file in "css-wapuu-shortcode" v. 1.0.5 is loaded by WordPress automatically on each request
65 characters long description:
It is a plug-in that embed wapuu drawn by CSS in the short code .

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,451 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS2135481,381
PHP122970

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions2
▷ Named functions2100.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