84% demomentsomtres-wp-export

Code Review | DeMomentSomTres WordPress Export Posts With Images

WordPress plugin DeMomentSomTres WordPress Export Posts With Images scored84%from 54 tests.

About plugin

  • Plugin page: demomentsomtres-w...
  • Plugin version: 20220825...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.0.1
  • WordPress version: 6.3.1
  • First release: Jun 13, 2013
  • Latest release: Aug 25, 2022
  • Number of updates: 43
  • Update frequency: every 78.2 days
  • Top authors: marcqueralt (100%)

Code review

54 tests

User reviews

45 reviews

Install metrics

10,000+ active /110,585 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼2.90ms] Passed 4 tests

An overview of server-side resources used by DeMomentSomTres WordPress Export Posts With Images
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2138.73 ▲0.53
Dashboard /wp-admin3.52 ▲0.2144.86 ▼6.06
Posts /wp-admin/edit.php3.63 ▲0.2744.67 ▼3.06
Add New Post /wp-admin/post-new.php6.10 ▲0.2180.50 ▼2.73
Media Library /wp-admin/upload.php3.44 ▲0.2134.95 ▲0.26
DeMomentSomTres Export /wp-admin/tools.php?page=dms3export3.4235.79

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

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

Browser metrics Passed 4 tests

A check of browser resources used by DeMomentSomTres WordPress Export Posts With Images
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲3213.24 ▼0.691.74 ▼0.3738.77 ▼7.07
Dashboard /wp-admin2,209 ▲214.88 ▲0.0198.79 ▼11.1038.96 ▼4.61
Posts /wp-admin/edit.php2,092 ▲32.03 ▼0.0233.60 ▼6.7133.05 ▼3.25
Add New Post /wp-admin/post-new.php1,545 ▲1218.20 ▼4.81614.62 ▼62.4151.88 ▼6.90
Media Library /wp-admin/upload.php1,394 ▲94.21 ▼0.0196.46 ▼3.6142.23 ▼1.44
DeMomentSomTres Export /wp-admin/tools.php?page=dms3export1,1971.8229.9429.96

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 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 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 fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/export.php): failed to open stream: No such file or directory in wp-content/plugins/demomentsomtres-wp-export/demomentsomtres-wp-export.php on line 13
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/export.php' (include_path='.:/usr/share/php') in wp-content/plugins/demomentsomtres-wp-export/demomentsomtres-wp-export.php on line 13
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/demomentsomtres-wp-export/demomentsomtres-wp-export.php on line 13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: attachments, export

demomentsomtres-wp-export/demomentsomtres-wp-export.php 85% from 13 tests

The primary PHP file in "DeMomentSomTres WordPress Export Posts With Images" version 20220825... is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "20220825...")
  • Description: Keep the plugin description shorter than 140 characters (currently 160 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected729 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1103137729

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity110.00
▷ Minimum class complexity110.00
▷ Maximum class complexity110.00
Average method complexity6.45
▷ Minimum method complexity1.00
▷ Maximum method complexity62.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin