10% ipb-last-topics

Code Review | Ipb Last Topics

WordPress plugin Ipb Last Topics scored10%from 54 tests.

About plugin

  • Plugin page: ipb-last-topics
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Jan 6, 2013
  • Latest release: Jan 6, 2013
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: progpars (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,466 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure had errors
    • > User deprecated in wp-includes/functions.php+5747
    Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.

Server metrics [RAM: ▼1.96MB] [CPU: ▼53.45ms] Passed 4 tests

An overview of server-side resources used by Ipb Last Topics
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.64 ▼44.82
Dashboard /wp-admin2.05 ▼1.265.62 ▼40.26
Posts /wp-admin/edit.php2.05 ▼1.316.81 ▼44.16
Add New Post /wp-admin/post-new.php2.05 ▼3.845.82 ▼84.56
Media Library /wp-admin/upload.php2.05 ▼1.186.30 ▼32.16

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Ipb Last Topics
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.32 ▼1.351.59 ▼0.2039.78 ▲0.58
Dashboard /wp-admin2,220 ▲325.82 ▼0.0793.20 ▼11.7378.80 ▲39.03
Posts /wp-admin/edit.php2,097 ▲82.05 ▲0.0633.93 ▼8.0033.74 ▼2.25
Add New Post /wp-admin/post-new.php1,524 ▲1023.14 ▲5.56789.45 ▲74.9255.40 ▼3.56
Media Library /wp-admin/upload.php1,402 ▲174.17 ▼0.06103.54 ▲3.7976.14 ▲34.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5747
    Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

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)
Even though no errors were found, this is by no means an exhaustive test

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 take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ipb-last-topics/ipblasttopics.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ipb-last-topics/panel_ipblasttopics.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Screen shot (screenshot-1.png) in Setting page), #2 (Screen shot (screenshot-2.png) in preview)
You can take inspiration from this readme.txt

ipb-last-topics/ipblasttopics.php 92% from 13 tests

The primary PHP file in "Ipb Last Topics" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ipb-last-topics.php" instead of "ipblasttopics.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin492 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS200224
PHP22515212
PO File1243756

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png30.45KB15.32KB▼ 49.68%
images/topic.png0.59KB0.69KB0.00%
images/bg-head.png0.13KB0.19KB0.00%
images/icon.png1.64KB0.83KB▼ 49.49%