89% topic

Code Review | Topic SEO Content Optimization Tool

WordPress plugin Topic SEO Content Optimization Tool scored 89% from 54 tests.

About plugin

  • Plugin page: topic
  • Plugin version: 1.0.24
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 6, 2021
  • Latest release: Sep 6, 2023
  • Number of updates: 33
  • Update frequency: every 29.5 days
  • Top authors: usetopic (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

900+ active / 11,289 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Topic SEO Content Optimization Tool
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.09 ▼1.19
Dashboard /wp-admin3.32 ▲0.0249.46 ▲4.53
Posts /wp-admin/edit.php3.37 ▲0.0246.23 ▼1.29
Add New Post /wp-admin/post-new.php5.87 ▼0.0183.21 ▼12.63
Media Library /wp-admin/upload.php3.25 ▲0.0236.43 ▲1.08

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Topic SEO Content Optimization Tool
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼1.094.46 ▲2.7643.69 ▼1.67
Dashboard /wp-admin2,206 ▲155.81 ▼0.0997.73 ▼12.0536.63 ▼7.65
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0135.82 ▼0.8030.60 ▼4.17
Add New Post /wp-admin/post-new.php1,548 ▲1526.43 ▲3.36757.21 ▲90.2432.37 ▼17.97
Media Library /wp-admin/upload.php1,388 ▲34.21 ▼0.0398.83 ▼2.5339.86 ▼6.71

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: seo, content analysis, readability, content research

topic/index.php 92% from 13 tests

"Topic SEO Content Optimization Tool" version 1.0.24's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("topic.php" instead of "index.php")

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
Good job! No executable or dangerous file extensions detected2,099 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS238221,832
PHP46516257
SVG1008
JavaScript2002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity4.00
▷ Minimum class complexity2.00
▷ Maximum class complexity6.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods1466.67%
▷ Protected methods00.00%
▷ Private methods733.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 1.08MB with 0.71MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png3.26KB1.61KB▼ 50.66%
assets/banner-772x250.png103.18KB31.67KB▼ 69.30%
assets/banner-1544x500.png298.13KB83.55KB▼ 71.97%
assets/screenshot-2.png338.26KB102.99KB▼ 69.55%
assets/screenshot-1.png353.24KB108.76KB▼ 69.21%