90% wp-terms-as-posts

Code Review | WP Terms as Posts

WordPress plugin WP Terms as Posts scored90%from 54 tests.

About plugin

  • Plugin page: wp-terms-as-posts
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.3.2
  • WordPress version: 6.3.1
  • First release: Dec 25, 2019
  • Latest release: Dec 26, 2019
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: davidnaviaweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /384 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by WP Terms as Posts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.0139.38 ▼5.55
Dashboard /wp-admin3.57 ▼0.0650.15 ▼20.15
Posts /wp-admin/edit.php3.69 ▲0.0151.61 ▲1.13
Add New Post /wp-admin/post-new.php6.15 ▲0.0197.19 ▼4.06
Media Library /wp-admin/upload.php3.49 ▲0.0038.51 ▲2.76

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WP Terms as Posts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.301.86 ▲0.1145.05 ▲1.74
Dashboard /wp-admin2,192 ▲185.55 ▼0.1489.16 ▼12.1739.66 ▼2.63
Posts /wp-admin/edit.php2,100 ▲32.01 ▲0.0533.80 ▼4.2436.19 ▲2.43
Add New Post /wp-admin/post-new.php1,549 ▲1723.44 ▲0.04656.65 ▼54.5154.21 ▼5.70
Media Library /wp-admin/upload.php1,403 ▲34.23 ▼0.0297.11 ▼7.2049.64 ▲6.50

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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 | 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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: terms, posts, edition screen

wp-terms-as-posts/wp-terms-as-posts.php Passed 13 tests

The main PHP file in "WP Terms as Posts" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
126 characters long description:
This plugin renders the terms edition screen like the posts edition screen just with the less CSS as possible and a bit of JS.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin177 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS2280157
PHP221117
JavaScript1003

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
There are no PNG files in this plugin