83% browse-topic

Code Review | Browse Topic

WordPress plugin Browse Topic scored83%from 54 tests.

About plugin

  • Plugin page: browse-topic
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.7.1
  • WordPress version: 6.3.1
  • First release: Nov 10, 2013
  • Latest release: Nov 10, 2013
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: kharisblank (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,090 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by Browse Topic
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.23 ▲1.74
Dashboard /wp-admin3.31 ▲0.0146.12 ▼10.10
Posts /wp-admin/edit.php3.36 ▲0.0167.37 ▲14.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.46 ▼10.44
Media Library /wp-admin/upload.php3.24 ▲0.0135.26 ▲1.15

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Browse Topic
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.59 ▼0.801.62 ▼0.1142.71 ▼2.47
Dashboard /wp-admin2,203 ▲155.91 ▲1.06100.07 ▼5.2239.90 ▼2.26
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0535.28 ▼3.0632.78 ▲2.37
Add New Post /wp-admin/post-new.php1,514 ▼1917.47 ▼5.84617.11 ▼78.4656.61 ▲3.82
Media Library /wp-admin/upload.php1,382 ▼34.24 ▲0.0396.04 ▼7.1141.17 ▼0.79

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/browse-topic/browse-topic.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (Inserting [browse-topic] shortcode), #2 (Browse Topic page)
  • Contributors: The plugin contributors field is missing
You can look at the official readme.txt

browse-topic/browse-topic.php 92% from 13 tests

The main file in "Browse Topic" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 182 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin91 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1492150
LESS12421
CSS10420

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png7.39KB4.70KB▼ 36.50%
screenshot-1.png19.86KB9.44KB▼ 52.49%