84% tag-wiki

Code Review | Tag Wiki for WordPress

WordPress plugin Tag Wiki for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: tag-wiki
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-4.1
  • WordPress version: 6.3.1
  • First release: Jan 21, 2015
  • Latest release: Jan 21, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: meitar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,450 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.83ms] Passed 4 tests

Server-side resources used by Tag Wiki for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0842.13 ▼2.16
Dashboard /wp-admin3.38 ▲0.0848.27 ▼7.90
Posts /wp-admin/edit.php3.43 ▲0.0745.25 ▼3.92
Add New Post /wp-admin/post-new.php5.96 ▲0.0787.13 ▼9.32
Media Library /wp-admin/upload.php3.30 ▲0.0736.47 ▲2.16
Tag Wiki Pages /wp-admin/edit.php?post_type=tag-wiki-page3.3537.77
Tag Wiki for WordPress /wp-admin/options-general.php?page=tag_wiki_settings3.2736.15

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Tag Wiki for WordPress: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.47 ▲0.161.78 ▲0.1043.85 ▲0.16
Dashboard /wp-admin2,217 ▲325.85 ▼0.01102.08 ▼23.3937.70 ▼5.78
Posts /wp-admin/edit.php2,100 ▲111.99 ▼0.0234.87 ▼3.0335.12 ▼1.41
Add New Post /wp-admin/post-new.php1,542 ▲2223.30 ▼0.21635.63 ▼27.3058.08 ▲6.63
Media Library /wp-admin/upload.php1,396 ▲114.19 ▲0.01101.30 ▲0.5943.02 ▲0.16
Tag Wiki Pages /wp-admin/edit.php?post_type=tag-wiki-page1,1531.9331.0331.41
Tag Wiki for WordPress /wp-admin/options-general.php?page=tag_wiki_settings8182.0325.5436.55

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/tag-wiki/tag-wiki.php:21

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: content management, information architecture, wiki, tags, seo

tag-wiki/tag-wiki.php 85% from 13 tests

Analyzing the main PHP file in "Tag Wiki for WordPress" version 0.1
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Description: The description should be shorter than 140 characters (currently 470 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin214 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11823214

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1184.62%
▷ Protected methods00.00%
▷ Private methods215.38%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin