94% twentythree

Code Review | TwentyThree

WordPress plugin TwentyThree scored 94% from 54 tests.

About plugin

  • Plugin page: twentythree
  • Plugin version: 4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8+
  • WordPress version: 5.9.2
  • First release: Sep 29, 2016
  • Latest release: Sep 13, 2016
  • Number of updates: 3
  • Update frequency: every 4.0 days
  • Top authors: chrtwentythree (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 585 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.02MB] [CPU: ▼293.93ms] Passed 4 tests

Analyzing server-side resources used by TwentyThree
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0158.58 ▲1.44
Dashboard /wp-admin3.42 ▲0.0135.94 ▼2.65
Posts /wp-admin/edit.php3.65 ▲0.0138.30 ▼3.57
Add New Post /wp-admin/post-new.php6.90 ▼0.08107.09 ▼1,169.60
Media Library /wp-admin/upload.php3.30 ▼0.0027.90 ▲0.12

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

TwentyThree: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4115.91 ▲0.275.87 ▼0.292.53 ▼0.14
Dashboard /wp-admin2,895 ▲346.13 ▼0.06114.91 ▼16.17153.67 ▼9.14
Posts /wp-admin/edit.php2,694 ▼03.24 ▲0.0161.10 ▼3.56136.57 ▼4.41
Add New Post /wp-admin/post-new.php1,711 ▲4321.35 ▲3.32467.78 ▲61.44159.44 ▲3.98
Media Library /wp-admin/upload.php1,698 ▲35.51 ▼0.02135.91 ▼2.24182.11 ▼9.65

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

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 everything seems fine, this is not an exhaustive test

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 return non-empty strings:
    • > /wp-content/plugins/twentythree/twentythree.php

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: video, 23, twentythree, iframe

twentythree/twentythree.php Passed 13 tests

The entry point to "TwentyThree" version 4.3 is a PHP file that has certain tags in its header comment area
91 characters long description:
A plugin for allowing embeds from the TwentyThree platform using a [twentythree] shortcode.

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 detected17 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141017

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin