84% rs-wp-themes-one-click-demo-content

Code Review | RSWPTHEMES ONE CLICK DEMO CONTENT

WordPress plugin RSWPTHEMES ONE CLICK DEMO CONTENT scored84%from 54 tests.

About plugin

  • Plugin page: rs-wp-themes-one-...
  • Plugin version: 2.0.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1
  • WordPress version: 6.3.1
  • First release: Jan 19, 2022
  • Latest release: Feb 11, 2023
  • Number of updates: 27
  • Update frequency: every 14.4 days
  • Top authors: rswpthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active /7,103 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.05MB] [CPU: ▼4.96ms] Passed 4 tests

A check of server-side resources used by RSWPTHEMES ONE CLICK DEMO CONTENT
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0544.75 ▲3.70
Dashboard /wp-admin3.36 ▲0.0551.95 ▼1.65
Posts /wp-admin/edit.php3.41 ▲0.0549.62 ▼3.44
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.66 ▼16.48
Media Library /wp-admin/upload.php3.28 ▲0.0537.01 ▲1.74

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

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

Browser metrics Passed 4 tests

Checking browser requirements for RSWPTHEMES ONE CLICK DEMO CONTENT
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.031.71 ▼0.0743.58 ▲0.62
Dashboard /wp-admin2,195 ▲155.56 ▼0.0885.45 ▼1.8439.84 ▼4.59
Posts /wp-admin/edit.php2,100 ▼31.94 ▼0.0832.82 ▼7.0433.90 ▼5.98
Add New Post /wp-admin/post-new.php1,526 ▼523.12 ▲0.40669.23 ▲3.7059.31 ▼1.43
Media Library /wp-admin/upload.php1,397 ▼34.19 ▲0.0199.27 ▼8.6144.67 ▼2.48

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/rs-wp-themes-one-click-demo-content/rs-wp-themes-one-click-demo-content.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid URI ("rswpthemes.com")
You can take inspiration from this readme.txt

rs-wp-themes-one-click-demo-content/rs-wp-themes-one-click-demo-content.php 92% from 13 tests

The principal PHP file in "RSWPTHEMES ONE CLICK DEMO CONTENT" v. 2.0.9 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Success! There were no dangerous files found in this plugin227 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP1322215
JSON120012

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
3 compressed PNG files occupy 0.50MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
demoes/rs-pet-blog/screenshot.png165.95KB166.11KB0.00%
demoes/author-portfolio/screenshot.png170.37KB169.76KB0.36%
demoes/screenshots/author-personal-blog-pro.png175.25KB177.28KB0.00%