84% wp-teapot

Code Review | WP Teapot

WordPress plugin WP Teapot scored84%from 54 tests.

About plugin

  • Plugin page: wp-teapot
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.9
  • WordPress version: 6.3.1
  • First release: Apr 7, 2017
  • Latest release: Jan 23, 2022
  • Number of updates: 17
  • Update frequency: every 103.1 days
  • Top authors: stevenkword (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,061 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by WP Teapot
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.98 ▼7.62
Dashboard /wp-admin3.32 ▼0.0243.59 ▼18.57
Posts /wp-admin/edit.php3.38 ▲0.0249.36 ▲3.82
Add New Post /wp-admin/post-new.php5.90 ▲0.0289.66 ▼18.19
Media Library /wp-admin/upload.php3.25 ▲0.0234.48 ▼2.35

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for WP Teapot
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.24 ▼0.121.80 ▲0.0439.26 ▼6.07
Dashboard /wp-admin2,195 ▲215.62 ▲0.0489.74 ▲2.3147.14 ▲9.39
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0541.13 ▲2.4235.40 ▼4.51
Add New Post /wp-admin/post-new.php1,526 ▼023.28 ▼0.17572.19 ▼26.1242.48 ▼10.86
Media Library /wp-admin/upload.php1,394 ▼64.17 ▲0.0294.20 ▼3.2241.97 ▲0.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please 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 load_plugin_textdomain() in wp-content/plugins/wp-teapot/wp-teapot.php:68

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: teapot, status code, rfc, http

wp-teapot/wp-teapot.php Passed 13 tests

The main PHP script in "WP Teapot" version 1.0.2 is automatically included on every request by WordPress
12 characters long description:
I'm a teapot

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin72 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.30
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods110.00%
▷ Public methods880.00%
▷ Protected methods00.00%
▷ Private methods220.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.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