10% opaque-teaser

Code Review | Opaque Teaser

WordPress plugin Opaque Teaser scored 10% from 54 tests.

About plugin

  • Plugin page: opaque-teaser
  • Plugin version: 0.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4
  • WordPress version: 6.3.1
  • First release: Jan 8, 2014
  • Latest release: Nov 29, 2015
  • Number of updates: 16
  • Update frequency: every 43.1 days
  • Top authors: mikeselander (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,805 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/opaque-teaser/opaque-teaser.php+32
    Trying to access array offset on value of type null

Server metrics [RAM: ▼1.89MB] [CPU: ▼51.05ms] Passed 4 tests

An overview of server-side resources used by Opaque Teaser
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.379.61 ▼29.50
Dashboard /wp-admin2.12 ▼1.196.98 ▼44.01
Posts /wp-admin/edit.php2.12 ▼1.246.51 ▼42.55
Add New Post /wp-admin/post-new.php2.12 ▼3.776.42 ▼88.13
Media Library /wp-admin/upload.php2.12 ▼1.116.69 ▼26.91
Opaque Teaser /wp-admin/options-general.php?page=op_settings2.125.79

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Opaque Teaser
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.17 ▼1.191.65 ▲0.0238.92 ▼2.28
Dashboard /wp-admin2,210 ▲225.83 ▲0.0299.23 ▼7.2237.43 ▼6.47
Posts /wp-admin/edit.php2,072 ▼62.07 ▲0.0833.46 ▼5.7730.45 ▼4.10
Add New Post /wp-admin/post-new.php1,545 ▲1217.78 ▼5.31603.41 ▲6.3457.05 ▼24.50
Media Library /wp-admin/upload.php1,395 ▲74.16 ▼0.1296.48 ▼7.9841.14 ▼2.22
Opaque Teaser /wp-admin/options-general.php?page=op_settings9321.7225.1326.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/opaque-teaser/opaque-teaser.php+32
    Trying to access array offset on value of type null
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=op_settings
    • > Notice in wp-content/plugins/opaque-teaser/opaque-teaser.php+32
    Trying to access array offset on value of type null

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
7 plugin tags: preview, private, teaser, under construction, coming soon...

opaque-teaser/opaque-teaser.php 92% from 13 tests

Analyzing the main PHP file in "Opaque Teaser" version 0.2.2
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 142 characters long)

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
There were no executable files found in this plugin309 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2108102255
CSS111353
JavaScript1031

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity9.00
▷ Minimum class complexity7.00
▷ Maximum class complexity11.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG files were detected