89% recent-fluxbb-topics

Code Review | Recent FluxBB Topics

WordPress plugin Recent FluxBB Topics scored89%from 54 tests.

About plugin

  • Plugin page: recent-fluxbb-topics
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.8.1
  • WordPress version: 6.3.1
  • First release: Sep 2, 2017
  • Latest release: Sep 10, 2017
  • Number of updates: 10
  • Update frequency: every 0.8 days
  • Top authors: onico0 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /628 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.52ms] Passed 4 tests

This is a short check of server-side resources used by Recent FluxBB Topics
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.61 ▲5.66
Dashboard /wp-admin3.33 ▲0.0353.09 ▲2.09
Posts /wp-admin/edit.php3.38 ▲0.0351.63 ▲2.28
Add New Post /wp-admin/post-new.php5.91 ▲0.0389.43 ▼11.20
Media Library /wp-admin/upload.php3.26 ▲0.0339.58 ▲0.75
Fluxbb Recent Topics settings /wp-admin/options-general.php?page=fluxbb-recent-topics-settings3.2451.97

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 14 new options
New WordPress options
can_compress_scripts
fluxbb_show_time
widget_recent-posts
theysaidso_admin_options
fluxbb_rt_fluxbb_tt
db_upgraded
fluxbb_ajust_time
fluxbb_url_suffix
widget_theysaidso_widget
widget_recent-comments
...

Browser metrics Passed 4 tests

An overview of browser requirements for Recent FluxBB Topics
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲5814.57 ▲0.292.21 ▲0.2142.88 ▼4.22
Dashboard /wp-admin2,222 ▲225.88 ▲0.06107.32 ▼15.0240.54 ▼3.43
Posts /wp-admin/edit.php2,104 ▲72.03 ▼0.0237.84 ▼1.2036.87 ▼1.95
Add New Post /wp-admin/post-new.php1,529 ▼1617.61 ▼3.40615.05 ▼95.4372.68 ▲17.86
Media Library /wp-admin/upload.php1,404 ▲44.17 ▼0.03113.18 ▲4.7447.30 ▼2.74
Fluxbb Recent Topics settings /wp-admin/options-general.php?page=fluxbb-recent-topics-settings8722.1926.4731.41

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
  • This plugin does not fully uninstall, leaving 14 options in the database
    • can_compress_scripts
    • fluxbb_rt_fluxbb_tt
    • theysaidso_admin_options
    • fluxbb_rt_fluxbb_db
    • fluxbb_rt_fluxbb_url
    • widget_recent-posts
    • fluxbb_rt_fluxbb_limit
    • fluxbb_show_time
    • widget_recent-comments
    • fluxbb_url_suffix
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === recent-fluxbb-topics === )
  • Donate link: Invalid URI found ("")
You can take inspiration from this readme.txt

recent-fluxbb-topics/recent_fluxbb_topics.php 85% from 13 tests

This is the main PHP file of "Recent FluxBB Topics" version 0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("recent-fluxbb-topics.php" instead of "recent_fluxbb_topics.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 188 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin234 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP36950234

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity3.50
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected