10% a-sub-site-teaser-widget

Code Review | A Sub Site Teaser Widget

WordPress plugin A Sub Site Teaser Widget scored10%from 54 tests.

About plugin

  • Plugin page: a-sub-site-teaser...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9
  • WordPress version: 6.3.1
  • First release: Jul 16, 2014
  • Latest release: Jul 16, 2014
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: RaveKev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,588 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/a-sub-site-teaser-widget/a-sub-site-teaser-widget.php+20
    Methods with the same name as their class will not be constructors in a future version of PHP; A_Sub_Site_Teaser_Widget has a deprecated constructor

Server metrics [RAM: ▼1.74MB] [CPU: ▼57.91ms] Passed 4 tests

This is a short check of server-side resources used by A Sub Site Teaser Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.25 ▼1.215.91 ▼40.20
Dashboard /wp-admin2.28 ▼1.038.37 ▼42.22
Posts /wp-admin/edit.php2.28 ▼1.096.83 ▼48.22
Add New Post /wp-admin/post-new.php2.28 ▼3.627.10 ▼101.01
Media Library /wp-admin/upload.php2.28 ▼0.967.96 ▼30.13

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_a_sub_site_teaser_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for A Sub Site Teaser Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.24 ▼0.111.99 ▲0.0741.90 ▼4.92
Dashboard /wp-admin2,192 ▲155.61 ▼0.0595.08 ▼0.5741.45 ▼1.09
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0140.83 ▲3.8136.54 ▼2.81
Add New Post /wp-admin/post-new.php1,526 ▼323.14 ▲0.11626.97 ▼52.1858.27 ▲2.01
Media Library /wp-admin/upload.php1,397 ▼34.18 ▼0.04106.63 ▼5.1944.20 ▼4.31

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/a-sub-site-teaser-widget/a-sub-site-teaser-widget.php+20
    Methods with the same name as their class will not be constructors in a future version of PHP; A_Sub_Site_Teaser_Widget has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_a_sub_site_teaser_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/a-sub-site-teaser-widget/a-sub-site-teaser-widget.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === a-sub-site-teaser-widget === )
The official readme.txt is a good inspiration

a-sub-site-teaser-widget/a-sub-site-teaser-widget.php Passed 13 tests

Analyzing the main PHP file in "A Sub Site Teaser Widget" version 1.0
16 characters long description:
Teasers subpages

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
No dangerous file extensions were detected614 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP16613475
PO File1306879
CSS121160

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity54.00
▷ Minimum class complexity54.00
▷ Maximum class complexity54.00
Average method complexity8.57
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected